|
|
C:\Users\admin>python
3 o. [. O; M. w. y6 f3 EPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
) |0 ]7 [2 r- N& LType "help", "copyright", "credits" or "license" for more information.
! R; O9 L5 O0 l* F. ]2 D>>> import flask
! w8 P& {! l, E/ y9 J! t5 VTraceback (most recent call last):* n+ ^4 o& Y7 F# G
File "<stdin>", line 1, in <module>
$ s% P* ], U. ZModuleNotFoundError: No module named 'flask'/ F3 F/ {# y; E4 k- [, n( ~
>>> exit) F4 z+ G. c" ^! e
Use exit() or Ctrl-Z plus Return to exit
- }$ ?! I9 p8 Z* K3 j: H# Q6 r4 f# s; r>>> exit()% f/ u! F2 H F6 u$ ?% P3 R! T5 \! |
! g0 _0 X. y7 F3 n" k3 |0 K M
7 L* g' M @7 J- t% C# ~8 D( D9 z( N3 y" d& H8 J' j
C:\Users\admin>cd C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2
' z8 G1 G; |3 |/ K0 Q- u) f# z# N3 C, K9 |6 T- u( ^4 j
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir6 J) X! S9 l0 ~. d0 K3 _) E
驱动器 C 中的卷没有标签。
" |0 H$ x6 C$ h O1 U$ A/ ?7 [ 卷的序列号是 9825-C512
1 U8 z, i. S* o' k
( T. l# T# |% Y$ P- r8 Z# v) F C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
, `+ Z) f$ m3 q' j2 \5 A2 o
; h6 T0 M% T9 A) g6 V% ]2024/05/25 17:09 <DIR> .5 a! w3 }1 m; Y+ ?3 B; W
2024/05/25 17:09 <DIR> ..3 z0 f4 d! @; c0 ^
2024/05/25 17:09 <DIR> artwork
0 a7 l5 ~' T( D2 |3 A& P1 n2020/04/04 01:03 46,173 CHANGES.rst
! p9 L$ B+ @; e P4 N2020/04/03 22:25 6,624 CONTRIBUTING.rst
9 X( |2 [& C; t2024/05/25 17:09 <DIR> docs5 S" g) X7 \% n# {7 v* s) O
2024/05/25 17:09 <DIR> examples
" k3 q5 D t3 L0 {4 N$ T) ?0 o& d2019/11/19 10:25 1,475 LICENSE.rst; k1 t, a7 Y- l% B9 h! }/ p
2020/04/04 01:10 152 MANIFEST.in+ p& s( \1 k9 S7 T. z9 E0 J
2020/04/04 01:10 4,547 PKG-INFO
4 o; V6 v3 X/ q+ ~9 b2019/11/19 10:25 2,161 README.rst6 U7 i% A1 w' w9 P/ `
2020/04/04 01:10 480 setup.cfg
" v0 K, g4 }7 N& b& {2020/01/11 09:20 2,799 setup.py0 y7 t2 y0 X1 ?7 n( Z
2024/05/25 17:09 <DIR> src$ k* t1 }4 I' s6 U5 C
2024/05/25 17:09 <DIR> tests
# P4 ]2 S: O* D2020/01/11 09:20 1,709 tox.ini
, ^. Q W- h' D3 h; p 9 个文件 66,120 字节
6 z* z) B) E& Q0 {+ _& T 7 个目录 22,689,103,872 可用字节
8 e0 i3 ~8 d: s
' x0 S) |( V6 X% Y8 c/ A安装flask版本1.1.2版本:
2 F7 z- A8 J0 _1 Z! O. [5 Y5 V; @C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install
( y: a# @% G1 l8 J$ y3 Crunning install
3 p3 J, I- A3 F& N# I7 k* xrunning bdist_egg( L4 T8 I2 o0 ~. w; w7 k- Q' |; D0 ]9 K
running egg_info: O- {6 x& V; Z C- _0 d
writing src\Flask.egg-info\PKG-INFO
; X+ {; Q* _) V) ewriting dependency_links to src\Flask.egg-info\dependency_links.txt- e6 S; `$ z4 \+ f& f" P0 [
writing entry points to src\Flask.egg-info\entry_points.txt
- |' G' k% p& r1 _: Owriting requirements to src\Flask.egg-info\requires.txt i7 S6 g) U7 l
writing top-level names to src\Flask.egg-info\top_level.txt
) Q5 B1 t# L% C# f2 ereading manifest file 'src\Flask.egg-info\SOURCES.txt'
4 t3 d- \/ m9 p* a6 H9 vreading manifest template 'MANIFEST.in'
2 |- ?3 b4 m0 y+ D4 Fno previously-included directories found matching 'docs\_build'- [; y) W4 N' N# R
warning: no previously-included files matching '*.pyc' found anywhere in distribution
6 x5 i8 \ x2 \' @: S* Qwriting manifest file 'src\Flask.egg-info\SOURCES.txt'# d& H+ Z6 u2 \' D$ ^$ f
installing library code to build\bdist.win-amd64\egg
8 z# x' _5 y% q4 E- n7 [running install_lib
7 X( w5 u+ `/ s( J0 a: lrunning build_py, B$ B1 u) R: @/ l' D
creating build
5 l1 \. h! T+ u) x1 ]% Ocreating build\lib
: H) m' g5 }* {4 Y. Bcreating build\lib\flask
2 I0 s3 |; I2 O7 r7 m* h9 pcopying src\flask\app.py -> build\lib\flask
6 ?7 J9 r+ z& z' |1 J% s, Acopying src\flask\blueprints.py -> build\lib\flask
) N- h" E* y5 Acopying src\flask\cli.py -> build\lib\flask
3 P% V+ I& M) l9 F( R# ~+ Qcopying src\flask\config.py -> build\lib\flask4 p0 a! P/ B, W
copying src\flask\ctx.py -> build\lib\flask
4 L9 _7 }8 w2 ^# F( W6 P; O' ~) Gcopying src\flask\debughelpers.py -> build\lib\flask# ^3 f* B! D' q' { ~. [( j
copying src\flask\globals.py -> build\lib\flask
) I2 f; A u+ [- p* b& l* vcopying src\flask\helpers.py -> build\lib\flask
: {- @7 M2 C8 [5 m" D& Z* i- Gcopying src\flask\logging.py -> build\lib\flask' n3 X" r2 H0 m" G. z1 @ J* i
copying src\flask\sessions.py -> build\lib\flask. ]+ e2 U4 @4 Q }1 B& R l; w4 [
copying src\flask\signals.py -> build\lib\flask
# i2 I4 S1 u# ]copying src\flask\templating.py -> build\lib\flask
7 q. X% x% y, o6 I9 G, K+ p- hcopying src\flask\testing.py -> build\lib\flask4 w$ ?- |; @7 |2 N- q* k* z
copying src\flask\views.py -> build\lib\flask
4 b' @+ @8 i9 Kcopying src\flask\wrappers.py -> build\lib\flask
s z* m2 U$ u) w/ b) N3 g- Zcopying src\flask\_compat.py -> build\lib\flask
3 ]) e2 W5 P; t% a0 c' E$ zcopying src\flask\__init__.py -> build\lib\flask3 u: A% X9 n* A: @1 K/ u7 d- s
copying src\flask\__main__.py -> build\lib\flask* q: M0 _2 _# b
creating build\lib\flask\json
( w+ H; Y1 ]- G6 C* Ocopying src\flask\json\tag.py -> build\lib\flask\json* l& C5 Q, A( j4 R/ {4 _
copying src\flask\json\__init__.py -> build\lib\flask\json
9 J: c5 E7 r# w7 X! X! ccreating build\bdist.win-amd64
* `$ c0 T4 y* R {6 v3 Dcreating build\bdist.win-amd64\egg7 L, M+ ]7 f. k2 C' r8 ~
creating build\bdist.win-amd64\egg\flask/ h* [) {7 R$ _
copying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
0 J1 R( D, ~6 S8 J; O# Ycopying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask
0 K1 M0 v. d4 v5 G! Icopying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask2 L* S+ }) D/ O9 i/ O* T0 v, v# v
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask
% C W3 ^( }5 \4 N& ycopying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask3 ]/ G0 d! A5 G# L/ A$ o7 C
copying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask
( ?6 q9 C. B4 }' j [copying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask8 o% q* B5 b, {* L5 f# n
copying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask
' `9 } p' O2 s( K3 Ucreating build\bdist.win-amd64\egg\flask\json
' e9 c! Y! o0 v* l8 ?; Q Icopying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json
K! n! A: l8 K5 Z) R4 O3 A$ |copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
( K2 h% h8 i* }! i1 n2 v4 k* }& lcopying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask
* u( z1 h1 f1 _ M3 [( s' Dcopying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask; Z( O, k( ^% C U h! k! ~0 J
copying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask
' g7 @. K5 |) b0 U Rcopying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask
) J! a& I5 G$ n) j+ ]( Q' @copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
5 R7 ~5 j2 e" A6 S( q, z& Wcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask
! ~2 |; ^6 F" R* o; A3 m; U3 N9 Lcopying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
! e- a$ }. C2 j! g- Y) dcopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask
; a# E; R: H1 o/ t# R# Dcopying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask/ _! G( f: k: ]5 B
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
1 L* t. z" h/ E7 x. t9 P3 Lbyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc8 A! P( _/ m8 f' w; j6 f L0 w
byte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc
! _! L b2 G5 g+ T& abyte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc+ ~) C$ d/ o$ U% _, S+ g+ S* z
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc$ N7 H* M2 l% Y
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc
" h: ^4 C+ M7 P% S5 O( K8 vbyte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
& t$ E2 s2 z9 `) Vbyte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc
* o( Z8 e! V1 ^2 L0 n4 ^) b7 ibyte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc* j& g4 K9 e( P5 v
byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
9 y; `- f2 W1 W0 i2 B& |byte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc
1 [2 [' U+ [9 e3 Nbyte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc
0 G- z9 T8 |/ Pbyte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc8 n- a! R+ `/ J' r
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc8 \, n+ S6 k2 O! d
byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc
7 @( ?- I$ f8 rbyte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
$ \$ _7 [& j4 |" n5 r* M6 p& A3 hbyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc; Y! B$ H. M' R/ G$ e5 o
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc/ n* y; V) P I, ] {, u% l
byte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc: v) ^, C. [8 o! k% I. ^: B' ~& y
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc% s6 b6 u! C7 `
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc
8 n; ]3 f9 C4 l N$ L( Gcreating build\bdist.win-amd64\egg\EGG-INFO4 e) |& }1 ~ r/ q! N
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO* c4 Z) ]$ l; P8 N# g( J
copying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO. O% J5 z# j! F
copying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO# V. m5 p5 d6 @4 F: @3 V
copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
8 \2 A; ~" D( O; I1 [1 s* I# ^copying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO4 e. S6 T/ D8 u) t' Q! T B, T
copying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
0 S+ U) n- U( v2 @zip_safe flag not set; analyzing archive contents...9 R1 c% ^+ B2 ]: f; i! ], s" V
flask.__pycache__.app.cpython-38: module references __file__) [' h% E. Y) ]5 M
flask.__pycache__.config.cpython-38: module references __file__. q N. e- b, s, {1 |
flask.__pycache__.helpers.cpython-38: module references __file__$ r4 K% G8 M! f" B7 S5 y, F* Y
creating dist
7 p* V4 U1 O0 }+ N$ {: tcreating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it
& c! E, H. F) Rremoving 'build\bdist.win-amd64\egg' (and everything under it)
9 i6 l5 N3 W1 V& v- F7 W4 b. tProcessing Flask-1.1.2-py3.8.egg% {& e# t* D3 p4 ?. o( V6 c y, F! u
creating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg. V) {: H- G+ G* l5 I# z: g
Extracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages: z4 X6 |1 M8 d7 u
Adding Flask 1.1.2 to easy-install.pth file
; |& a9 _, T7 J5 U2 bInstalling flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
' o& I) f8 h! w1 O+ {1 oInstalling flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts" r& \) E8 j$ V+ ~
- q; d! M" [( g" b9 GInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg" z, B' y+ v& I+ ]
Processing dependencies for Flask==1.1.2) m/ ]& _1 U7 L1 S1 ]
Searching for click>=5.1
' D8 ]7 c9 _ @' V# p6 FReading https://pypi.org/simple/click/! i/ `' ?- q& f1 @% l
Downloading https://files.pythonhosted.org/p ... 9a7931d1582f3390c28
2 I# {0 @ \4 O: vBest match: click 8.1.7/ T+ V% b% {& [. U3 C$ `' ^' }
Processing click-8.1.7-py3-none-any.whl
$ J" U* z; p. [: d* I: oInstalling click-8.1.7-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages y- q# T4 o5 b, u/ M
writing requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg\EGG-INFO\requires.txt
( U; T" p! T, fAdding click 8.1.7 to easy-install.pth file
$ [9 w3 s- ~% U. D# B+ ?0 z/ u) [
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
' f* O* B3 P2 n% G: o8 SSearching for itsdangerous>=0.24! A& a& d: f# Q# }* w O; \+ c+ U {. B
Reading https://pypi.org/simple/itsdangerous/+ w* o; U" v: ]* ^0 d8 V
Downloading https://files.pythonhosted.org/p ... db01a3f5891b98700ef
" i) U) z1 \/ l6 e5 LBest match: itsdangerous 2.2.0% ], Z5 j, B6 Z+ W+ M) N1 _* L
Processing itsdangerous-2.2.0-py3-none-any.whl
* T, \3 z: j- K/ qInstalling itsdangerous-2.2.0-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages' V6 t7 v: ^+ _7 K1 y( \
Adding itsdangerous 2.2.0 to easy-install.pth file
6 H: |1 O7 O ]3 z. {9 s+ D6 l2 w; k1 f
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg
: ^ j1 u r6 K. }" {Searching for Jinja2>=2.10.1
3 c$ U4 ` F* c6 sReading https://pypi.org/simple/Jinja2/
3 v) E. h t/ Z) d9 cDownloading https://files.pythonhosted.org/p ... fe6c89c6f9c7d25197d8 q4 n3 F( s5 ^4 a7 m2 v$ }
Best match: jinja2 3.1.4
5 w/ ~$ \8 v1 ^) h( \2 yProcessing jinja2-3.1.4-py3-none-any.whl
9 V) Z! y* ], y$ c# {4 PInstalling jinja2-3.1.4-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages+ K2 j/ }& t. |' R z
writing requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg\EGG-INFO\requires.txt6 x# R3 Y' b1 B s- p
Adding jinja2 3.1.4 to easy-install.pth file
7 `, l' y1 @3 @
4 x5 a3 E& r; n1 m0 x2 |Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg6 E) A( }. _8 j2 z+ h
Searching for Werkzeug>=0.15) A9 T2 j, N, u0 R2 }
Reading https://pypi.org/simple/Werkzeug/5 Q5 A/ ^9 S" \
Downloading https://files.pythonhosted.org/p ... 535fdfe155a17cc48c8
' H6 P6 l) B- ~. v; B( iBest match: werkzeug 3.0.3
' `+ |! P& _3 B: t5 k- y% fProcessing werkzeug-3.0.3-py3-none-any.whl
1 p% y+ X. H$ v8 oInstalling werkzeug-3.0.3-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
0 |! g q# j+ q! d- X$ n# Hwriting requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg\EGG-INFO\requires.txt
& \, p/ U! Z1 Y+ \; iAdding werkzeug 3.0.3 to easy-install.pth file
6 Q6 V# w3 i g- `
. Y) O I' y/ ]/ K( t' YInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg2 O- W6 r& B1 T3 `0 |* p
Searching for colorama
O/ E' u& c4 O' Z( Y2 fReading https://pypi.org/simple/colorama/
) X6 M6 J0 ] x, Q3 e% t, K0 w! XDownloading https://files.pythonhosted.org/p ... 11c16baf57afb285fc6" W# s: ^! D: K
Best match: colorama 0.4.6$ o8 k, s7 M3 Y3 W. \
Processing colorama-0.4.6-py2.py3-none-any.whl
, m2 j+ b& b6 |1 d* n0 ~3 EInstalling colorama-0.4.6-py2.py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
% W- q9 y3 l# i9 h$ NAdding colorama 0.4.6 to easy-install.pth file- q, l* p1 Z+ [: Q R8 ]
; X3 q, l/ |! J4 O$ Q" @
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg6 B# @% r$ S4 r* b0 |
Searching for MarkupSafe>=2.0; O$ |) _9 ?2 B' M4 J% C% i7 [
Reading https://pypi.org/simple/MarkupSafe/, L! S3 {2 t) N' d
Downloading https://files.pythonhosted.org/p ... b63c00bd1a709c6544b: s3 O* ~1 D5 n" B$ g7 I7 {+ Y
Best match: MarkupSafe 2.1.5
4 W+ M# O2 L) ^. J, i# N+ K# YProcessing MarkupSafe-2.1.5.tar.gz
8 @$ ~) O* L' AWriting C:\Users\admin\AppData\Local\Temp\easy_install-am4pt4f4\MarkupSafe-2.1.5\setup.cfg
/ v! _. Z# R9 }/ b0 P7 K2 rRunning MarkupSafe-2.1.5\setup.py -q bdist_egg --dist-dir C:\Users\admin\AppData\Local\Temp\easy_install-am4pt4f4\MarkupSafe-2.1.5\egg-dist-tmp-8and3adf
t1 w1 e* K" S' w+ e" ano previously-included directories found matching 'docs\_build'
, Y8 R& n S, ~- X$ ?, @6 }4 `warning: no previously-included files matching '*.pyc' found anywhere in distribution
$ W9 `! F9 y" C9 }6 \" G/ K# M$ ]==========================================================================- r @ y: A. x( w
WARNING: The C extension could not be compiled, speedups are not enabled.
9 R, S9 r! D% f' d! {6 ^Failure information, if any, is above.
9 Q0 p0 z+ \0 \* i2 m; K% u- M3 k/ A- ^Retrying the build without the C extension now.6 S+ M- g* c# x3 {0 N9 J8 j- G
==========================================================================3 ]5 n% K7 d/ D. P. z
no previously-included directories found matching 'docs\_build'
; f# }& h A. j$ dwarning: no previously-included files matching '*.pyc' found anywhere in distribution0 I3 S$ b" `0 m e. R% V
zip_safe flag not set; analyzing archive contents...% o- J) u$ ~% q9 X% G/ O$ F
==========================================================================+ _6 b! y+ \( g
WARNING: The C extension could not be compiled, speedups are not enabled.5 @0 [% @$ a+ ^2 c# J, G
Plain-Python build succeeded.
6 k. R! t! S; F$ t: _==========================================================================
~! U: J" \4 w8 ?Copying markupsafe-2.1.5-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
6 ]. i0 I. x, ~5 DAdding markupsafe 2.1.5 to easy-install.pth file0 ?" m b. z7 b- {5 B
9 B. Q' l. [5 n
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg4 w9 N( y6 `5 x
Finished processing dependencies for Flask==1.1.27 w" R; a: R$ T' N
# L5 A/ V* m4 e* ?/ ~
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python
; i- S! y) C7 hPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
* m. S2 m2 z3 B( u+ sType "help", "copyright", "credits" or "license" for more information.8 T. k. @; q1 a" F
>>> import flask
7 `: }5 J, G' Y+ [Traceback (most recent call last):
e* i! l% ~ G0 ]7 }7 x3 a( s9 H File "<stdin>", line 1, in <module>
# p' K3 l6 J2 e% l# y- R File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\flask-1.1.2-py3.8.egg\flask\__init__.py", line 14, in <module># U$ R- _. j7 x! K
from jinja2 import escape) O) g, G4 _% ?4 T+ H5 x
ImportError: cannot import name 'escape' from 'jinja2' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2-3.1.4-py3.8.egg\jinja2\__init__.py)9 [1 ~/ }5 C# D* ]& `
% x2 s- G$ T$ P' t
6 J- V5 Q1 R/ Q I/ Y引入报错:+ S1 F3 r2 \4 B8 w( {' x2 ]6 x/ j* ^
解决pip 组件版本:, ]- U' d2 r) t) o! V
( D2 l2 b8 z$ F, y% s9 c
8 o0 @" e: h' a; jC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list# S: a- k6 }4 P, ^* ` I
Package Version) a% G8 H8 e( c4 B1 S" r8 C u# Z' Z
------------ -------+ Y5 |) L5 M% M" m0 C Y4 O
click 8.1.7
% Q" p% c5 e+ d. w& ~4 }* [colorama 0.4.6" B3 L; U( n& o0 h2 i6 ]7 S" M
flask 1.1.2
j" Y# Z' G+ ]* a# i, Q+ Ditsdangerous 2.2.0
9 X! @$ {5 o- n7 U+ ^jinja2 3.1.4
) e0 p; n$ v/ H# b wmarkupsafe 2.1.55 s: ^- u5 e; Q2 ~3 k2 s3 U
pip 19.2.3* J+ M1 I- F" m/ k
setuptools 41.2.0
( F& v: b) M+ n% ]werkzeug 3.0.3, c% i9 L7 M. h7 l) Q. [
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
" z5 ~, r! Y3 e8 q) FYou should consider upgrading via the 'python -m pip install --upgrade pip' command.- ~& k1 Z6 i! j0 b3 l8 @$ \! C+ F
$ E4 [2 F3 G1 \' dC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "jinja2==2.11.2"
- |5 Z7 `( P" _( N4 D/ `' WCollecting jinja2==2.11.2( ^! ?" k" D3 a. Q! p* J
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl (125kB)% ~* b7 J- v/ ^8 f* y( r b
|████████████████████████████████| 133kB 652kB/s2 A/ q( f' U1 I& u, q: e0 n
Collecting MarkupSafe>=0.23 (from jinja2==2.11.2)+ c" o( `; E+ `; }
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl: i, o$ o, H0 I5 V+ ~& w; N
Installing collected packages: MarkupSafe, jinja2
y: K" Y) @) k) T. @Successfully installed MarkupSafe-2.1.5 jinja2-2.11.2. {2 B- S5 L( v e
WARNING: You are using pip version 19.2.3, however version 24.0 is available.. `6 W6 t A' q. g7 ^
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
& W% g1 G; f# r5 B5 v3 W
% W y+ z& w6 R& KC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
! O1 H9 q! J# BPackage Version
* M3 [% Q+ G0 c- O8 S- t------------ -------
1 b) E2 a$ y. s! n+ Jclick 8.1.7
+ h7 S; ? ^* |- L9 scolorama 0.4.6+ r% j* }6 H5 t/ _8 J2 R/ h: S
flask 1.1.2
. T$ [. I; {, mitsdangerous 2.2.00 h5 K! Y& A7 q ?# V' E
Jinja2 2.11.2
! y) D0 [& A/ B) G* XMarkupSafe 2.1.5
4 S- W7 Q6 Y4 J2 N, q3 T& Opip 19.2.3, ~+ s5 d* Q9 i; W* I! H
setuptools 41.2.07 R5 c2 `. h5 ?' v: }: p3 S/ w" B
werkzeug 3.0.3! Q0 R6 j' r j* v1 v
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
1 q2 e: u4 A2 w) zYou should consider upgrading via the 'python -m pip install --upgrade pip' command.: }9 l: i9 [3 |
8 l. z/ N: Y" P: l2 }; K: K
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>ls
1 s8 N) _; y8 Y# _! @7 }! Y" D'ls' 不是内部或外部命令,也不是可运行的程序# ], n D: E) K5 V
或批处理文件。
5 x& @$ H5 _/ j4 k# d
% {, ?3 C1 \5 k, J9 `C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir2 @+ H7 Z. e; T) p3 B4 C
驱动器 C 中的卷没有标签。3 H8 J& }1 k; Q$ [% p. y
卷的序列号是 9825-C512
6 u' ]6 _3 m0 e( |
2 y' C. Z' r' a% F- y7 }( A( Z C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
% D& i1 q& A+ h4 I$ i1 s2 z0 @4 B0 W
2024/05/25 17:10 <DIR> . }3 z4 r7 d- i& G9 E" H d
2024/05/25 17:10 <DIR> ..
( U: u- T) h# k0 |8 W2024/05/25 17:09 <DIR> artwork, Y" q+ I/ i+ q7 H
2024/05/25 17:10 <DIR> build
5 d+ K2 t( }1 |0 [9 w/ @2020/04/04 01:03 46,173 CHANGES.rst
+ T2 ?5 n+ P0 w' a2020/04/03 22:25 6,624 CONTRIBUTING.rst2 B$ j% k. F+ n+ T% P) T
2024/05/25 17:10 <DIR> dist9 |: l, a! J( X3 ] g7 F$ g, r m% k
2024/05/25 17:09 <DIR> docs
1 v5 q* w! x6 W5 H7 w2024/05/25 17:09 <DIR> examples
$ F ~! h r7 C" q) a9 S, W2019/11/19 10:25 1,475 LICENSE.rst7 D% v7 ~8 M9 Z
2020/04/04 01:10 152 MANIFEST.in
7 w+ {9 n/ `# c9 u2020/04/04 01:10 4,547 PKG-INFO
& X3 ^+ w' m- J! s g2019/11/19 10:25 2,161 README.rst
1 D8 g. S8 W9 X2 R2020/04/04 01:10 480 setup.cfg
[$ N) N9 t# A: v, N2 M: N. D2020/01/11 09:20 2,799 setup.py
3 L: G; @( V1 }2024/05/25 17:09 <DIR> src8 ~5 ?& b$ D, G; r4 V# W. J
2024/05/25 17:09 <DIR> tests8 {- I' U& N* x0 M5 S* u
2020/01/11 09:20 1,709 tox.ini* [5 a' m" n2 R# |, o5 \ s7 D. A' f
9 个文件 66,120 字节, p: `0 Q$ Q- y
9 个目录 22,681,739,264 可用字节2 r0 G# S# Z+ [' q+ I. ~+ w
) @- G- m+ F( l% `: B% W+ f7 Q+ H
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install, G3 w% {0 ]2 n0 w! q. Q9 x1 @& t
running install
. U' h) y5 L. A9 y$ O& v% j" [running bdist_egg6 i- e x6 `* q- O9 h- C% s
running egg_info2 y, o) c! ]: N( B
writing src\Flask.egg-info\PKG-INFO' X* j6 D I& m- t
writing dependency_links to src\Flask.egg-info\dependency_links.txt$ C$ {, I/ _: B
writing entry points to src\Flask.egg-info\entry_points.txt' ~3 C& @, C+ Z1 a* r1 n2 W
writing requirements to src\Flask.egg-info\requires.txt
0 j$ k9 j+ D: S U4 i% I7 ?writing top-level names to src\Flask.egg-info\top_level.txt
; _1 ~* I. z6 G0 n6 Z1 Vreading manifest file 'src\Flask.egg-info\SOURCES.txt'# |4 D# u G% [; [6 p/ B( a7 w
reading manifest template 'MANIFEST.in'
% B* w& O) \8 z2 e- M8 t9 Tno previously-included directories found matching 'docs\_build'
5 h7 O2 s- H* M) U0 F3 Jwarning: no previously-included files matching '*.pyc' found anywhere in distribution! |) }, j% S2 p9 Q5 m7 ]- H6 d
writing manifest file 'src\Flask.egg-info\SOURCES.txt'; X8 {' n( w' R J9 E4 k; s! G
installing library code to build\bdist.win-amd64\egg
5 |7 K% q6 M9 p' | x0 Trunning install_lib @" [& n. ~$ M0 U; q
running build_py
. ?+ q2 h6 l5 P* \3 a: I% mcreating build\bdist.win-amd64\egg
( ? ?: s% K+ }, Screating build\bdist.win-amd64\egg\flask$ b5 X4 S. T+ `" |
copying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask, C" B( _" k! G
copying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask
$ K' H# b: ]+ R: j3 Bcopying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask f3 T; W& m! ^# s h' V2 C9 i
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask. G% }: r/ t& F$ }0 ~* C. e( m
copying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask5 p+ O {9 k2 n0 V2 _0 \+ X8 ~6 e
copying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask
, P/ E& N T3 E0 @) Fcopying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask
7 i" H4 p. N6 n' m8 tcopying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask. p9 R+ L+ i& K2 b( P. Q9 b5 v
creating build\bdist.win-amd64\egg\flask\json
3 \! M" I" L/ N. I" V1 xcopying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json& L4 k$ ?0 p5 e/ Y! V1 r
copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json! U) g; ?( t2 z6 H) c/ t
copying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask5 H0 W9 j1 N' A9 h3 ~, F+ T/ C) \' H
copying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask
& E4 u$ E. W# E+ Jcopying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask
8 w. Y* G) m; U+ b4 k+ |$ O+ Jcopying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask
$ o/ l9 x- @4 ^copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
/ e( K( V: V% \1 [8 g: ^7 Bcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask2 K. g+ v4 e g* C9 E
copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
0 Q" D7 f4 ~" Y8 Q( z: n8 ~6 K, Ncopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask. f$ W+ h* E$ E u
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask4 i P5 M2 D- x
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
f- R- _. {3 E! S. T6 X9 V( ?# Zbyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc
7 l5 z* c Y1 ?; P. Jbyte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc! M1 E5 ^% p) z
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc
( ^1 O+ a1 r$ K% @! bbyte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc
. j. t9 g( f" o, s, M; Ybyte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc
. l8 N, F, v; kbyte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc# m9 b. V9 x% B$ \2 f& {' c- p4 z
byte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc
2 l4 B3 s3 t+ N8 g' y) o% P% Vbyte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc
3 H6 S& i0 A, \! g% T! J9 mbyte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
6 Z9 K( j; Z7 N$ ~& qbyte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc
, u% A( |( B+ }' t2 T. t Wbyte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc
8 W; `. Z4 i- k$ |byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc! Z, q V2 ?) T Y
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc
# b1 ?( ^6 d a( c$ q; J2 g* T( bbyte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc# S3 L6 ~$ [4 y
byte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
; ^' D! v$ h: b: }, {byte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc5 J$ H2 c4 u. l9 V% ?' h
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc7 {: x: v2 |5 G3 y: n: y3 @
byte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc: r9 c% A* }1 }: W, Y) r6 T# Y
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc
2 b, b& i. v" v! R+ obyte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc
7 d" l5 P- J& e) g" |creating build\bdist.win-amd64\egg\EGG-INFO: E# H4 V. v1 T! {: R
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
2 k3 {/ j4 p( N9 E, h. w# x9 icopying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
7 b4 e" ^. G( u! Scopying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO& M9 b1 f5 c `# T. O
copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO$ I& h' g: ?" E: Q. v; O+ z
copying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO1 s1 S$ G7 V3 q9 V. e4 z
copying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO; T. \6 i% o+ r' u$ Y5 c, }, [& j6 x( ^
zip_safe flag not set; analyzing archive contents...; q% A x6 z4 f) Z9 u% R
flask.__pycache__.app.cpython-38: module references __file__9 |- I& t6 H# x0 o( n! H
flask.__pycache__.config.cpython-38: module references __file__
. z3 M+ b1 P9 ?" bflask.__pycache__.helpers.cpython-38: module references __file__
7 _* S# {* z4 {. Bcreating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it7 j6 }" L+ U- T1 ]. O* _
removing 'build\bdist.win-amd64\egg' (and everything under it)
E. t. | J$ uProcessing Flask-1.1.2-py3.8.egg1 g- ?: s! }0 w* Y1 V
removing 'c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg' (and everything under it)
4 J+ \% q/ ?* O) K) Xcreating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg
7 }9 V5 H2 c7 x$ `! I/ l3 nExtracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
2 y( I( ^6 k- a* CFlask 1.1.2 is already the active version in easy-install.pth$ T0 H `) p4 x0 A T" v, Z; V
Installing flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
& q; e& u+ h0 o" Q; p' j- hInstalling flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
) z0 N0 U {& u9 u
@% T$ I8 ^ b0 T% F3 ZInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg/ x9 O9 p) B5 z+ R# `
Processing dependencies for Flask==1.1.2
) X9 \! Y V1 pSearching for click==8.1.7, @( h. u0 {6 y9 Q7 g, l: V
Best match: click 8.1.7
9 o% w# E& S0 ]2 z: Q0 x9 gProcessing click-8.1.7-py3.8.egg
0 L! p7 H6 W& Kclick 8.1.7 is already the active version in easy-install.pth$ C% u. t0 V! M/ {% S7 Y* @
6 x% a1 y- e' a' ^, q) K: X- HUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
) K5 w0 y4 ]& H* \$ {5 H5 I( X+ ?" MSearching for itsdangerous==2.2.0
2 }2 a- C) y C, `# qBest match: itsdangerous 2.2.0
6 m* T- C2 o% _* K. rProcessing itsdangerous-2.2.0-py3.8.egg8 y l1 I2 f0 @0 Y
itsdangerous 2.2.0 is already the active version in easy-install.pth. }9 P& o7 g# M% f2 }
8 Q* m2 ]* J( s8 X8 j
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg; a5 ?$ K# Z6 H, a' ^% t! m/ O* {
Searching for jinja2==3.1.4( j3 x2 F' l4 t9 n0 z; C
Best match: jinja2 3.1.4
6 @9 y# B0 G# K6 u) f/ V, QProcessing jinja2-3.1.4-py3.8.egg* s" d+ G' T( \- V' r7 i' @ ]
jinja2 3.1.4 is already the active version in easy-install.pth, Q: x P4 c8 w4 ]) I
3 g0 b3 z( n! ~3 p9 D1 b9 p
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg
/ G7 U; R7 r2 a9 ]+ pSearching for werkzeug==3.0.3
6 ]5 y" j8 A2 O6 E4 {9 m& TBest match: werkzeug 3.0.3
7 D5 t) Y( O" u( ^ ~. a7 j' ^Processing werkzeug-3.0.3-py3.8.egg
# Y) e! ^- y0 H# qwerkzeug 3.0.3 is already the active version in easy-install.pth
. i: f# o' o$ X/ }, J/ {' p
5 t' n! o9 o9 o- a* O" k y0 iUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg
2 Q2 F0 [( r5 m! YSearching for colorama==0.4.6
+ g+ r! [$ @, D8 C4 ^( t' |4 r. Q# f! GBest match: colorama 0.4.6
+ g. m! b: @ S( K+ \% lProcessing colorama-0.4.6-py3.8.egg
3 T) C3 T8 F- F4 c5 F' k) qcolorama 0.4.6 is already the active version in easy-install.pth0 `, Q, @7 U q! I" d; u& e* ?
1 G1 i# w9 f l! j2 x9 E
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg0 {/ b- r; F1 w9 o
Searching for markupsafe==2.1.5- R# @' y( J. T" a' K
Best match: markupsafe 2.1.5
/ k5 Q3 C: `7 ^: B& o$ x4 aProcessing markupsafe-2.1.5-py3.8.egg
- S0 P) Z1 z- l7 j0 N2 ^markupsafe 2.1.5 is already the active version in easy-install.pth h& r9 e4 C3 R
. Y$ h* e5 s+ @3 _7 P4 J
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
0 O2 r2 G* }2 H/ _7 P" J0 @4 oFinished processing dependencies for Flask==1.1.26 j: }. h4 z* k; ^
2 {( c7 M, B- L; ~2 j# v) g0 O- bC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list% [# Z# ^7 y7 ~# F6 U) _" ~4 }
Package Version
. a; ^; i3 Z" G7 ]1 m' o8 L------------ -------
% _! x4 W; ?6 f& Zclick 8.1.7% V% F8 M5 h9 |% e7 |( N/ l
colorama 0.4.6
) Y0 e) j/ \' S( i% c. u" @; _flask 1.1.2; j( v* [7 H7 I, `
itsdangerous 2.2.0
/ F. d% {7 U T1 g+ |0 n& a4 H8 U% WJinja2 2.11.29 Z4 J$ T6 v, X q0 y& p) I B
MarkupSafe 2.1.51 w4 i2 B, K/ V" u$ u) _% r6 B$ a) v
pip 19.2.3
( O7 ~- X, H" K. J4 `setuptools 41.2.0
& N4 r7 ^# u7 P+ swerkzeug 3.0.32 G$ q9 a0 f4 C4 |
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
+ r* x6 S' s' p& Z5 iYou should consider upgrading via the 'python -m pip install --upgrade pip' command.5 e% j' ^5 K( r$ ~
/ O; B0 W, [8 X& h, l( R' g
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python: v" }3 r7 X p; b3 K% \
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
5 I ~( u; G5 k$ KType "help", "copyright", "credits" or "license" for more information.7 _0 R. X4 i( H3 }
>>> import flask
2 S" F9 M8 V2 Z3 U: HTraceback (most recent call last):( e5 s7 Y0 a3 g1 O$ Q
File "<stdin>", line 1, in <module>) k4 p) _! T! c4 W6 x" [
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\flask-1.1.2-py3.8.egg\flask\__init__.py", line 14, in <module>
- d) v) X+ p* [% r: Q/ n/ N9 s from jinja2 import escape
) I A; Q# |/ J File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\__init__.py", line 12, in <module>; n, D6 V: w4 d1 y* I! [
from .environment import Environment
. i$ U( e' a2 \ D w3 e File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 25, in <module>( ~3 J7 G' g0 ?2 a% z$ r! P
from .defaults import BLOCK_END_STRING
$ C) _: P. F; m! Z/ H Z File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\defaults.py", line 3, in <module># Q! S% q! [# z6 z
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
/ }: W- T6 ]- H/ t0 F File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\filters.py", line 13, in <module>
0 W$ B. H, R6 P* m from markupsafe import soft_unicode3 x" y5 m) @" W! t, \. M8 r) X7 s
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\markupsafe\__init__.py)
6 t0 d; L. B3 I# z$ D>>>
3 G7 T& s; W }. a6 B; ?. p: c5 \>>>! \1 b" o4 k( D
>>>
) N6 W0 n& [8 y2 o6 i! \>>> exit()
* q9 O1 q! s+ H- [! K) @3 f
9 z# V {3 Q. n+ u4 B还是报错,版本太高,将版本。
" {) ]$ `- m9 p( r# ?# K& v8 S4 ^6 H! W" e/ ]6 y% Q* B) \
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
5 R# J$ u4 }! U7 Y+ K4 o. S4 TPackage Version
5 s l% z+ P, B& u% o------------ ------- r( ~9 l; ]- \% n0 T
click 8.1.7
% N" |$ \- t5 _- _+ T) Gcolorama 0.4.6. {; r+ E7 E' P, l D
flask 1.1.2
, |8 [* ^( I {4 Eitsdangerous 2.2.0+ e4 k7 i: V3 L& K. m: s* x3 }3 N5 p
Jinja2 2.11.2
# J" _& z) q& p# DMarkupSafe 2.1.5
% Z( E7 j e5 R4 t2 _pip 19.2.3
% q/ b. Z* R2 c: |. `setuptools 41.2.02 E6 a5 g( l8 S! F
werkzeug 3.0.3! W: n z% Y. D+ m
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
3 P( B8 \ g/ [5 {0 A, g% M0 kYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
" r# E: u3 @9 L# W8 Z7 _5 g
5 j. |" i/ C4 ?1 Y7 e* \C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"$ f& l, C+ g/ @& F! A7 i
Collecting MarkupSafe==1.1.1/ o. r: [* T! Q/ ]0 S
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
6 d1 j& E. _4 g( \. FERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
y/ n% T% s7 y% _Installing collected packages: MarkupSafe
" z) X! [* c7 K) e9 [+ tSuccessfully installed MarkupSafe-2.1.5
3 I- D2 P: E0 P: ]9 m( m, iWARNING: You are using pip version 19.2.3, however version 24.0 is available.' E5 y$ Q3 m9 o0 h
You should consider upgrading via the 'python -m pip install --upgrade pip' command./ y, q$ i; t) M r' ^1 ^- G
0 i4 C1 }; ^" z6 VC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1" 9 H% y' u" }8 z$ _9 k/ l) P
Collecting MarkupSafe==1.1.1* J' E% N$ F3 I/ s( W
Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl- V$ [# E- r2 O3 u: n6 P# T
ERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
% ~! K5 y A4 T4 o" K6 |. H: v3 fInstalling collected packages: MarkupSafe7 \8 X* J7 p: }4 {( h+ d3 B
Successfully installed MarkupSafe-2.1.5
& c5 z3 @' D) G% C" _, ZWARNING: You are using pip version 19.2.3, however version 24.0 is available.0 k t* q4 S" C2 w$ H+ D
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
1 G6 U( w, D3 Z1 f4 X+ M& s" u- a
" N) b+ m, c3 H" S+ I! vC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "werkzeug==2.0.0" Y: Z0 U0 r, ^
Collecting werkzeug==2.0.05 q" s* g" {6 P
Downloading https://files.pythonhosted.org/p ... .0-py3-none-any.whl (288kB)
) r8 D, ^' k5 R9 z# ~ |████████████████████████████████| 296kB 656kB/s
. g5 C8 V+ L7 D* E0 H. uInstalling collected packages: werkzeug$ R3 B7 J& w$ I+ e ^- L, m
Successfully installed werkzeug-2.0.0
% z3 o# E8 t( p5 JWARNING: You are using pip version 19.2.3, however version 24.0 is available.
* I2 @( K* \' o( M. s3 WYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
# G: Z0 ^$ C* d+ N- l/ p7 k8 q# e* w2 ]) o, p/ j' V+ ^
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"% ?% L* O1 f/ P
Collecting MarkupSafe==1.1.19 [, x" \- x5 u% E1 f$ U
Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
% l2 @# {7 ^$ B" b2 O# kInstalling collected packages: MarkupSafe) p% L3 ~- Z5 b8 n3 V/ `! _: B" o
Successfully installed MarkupSafe-2.1.5& z3 I) i& _& a) j5 H
WARNING: You are using pip version 19.2.3, however version 24.0 is available." j6 O( T5 Z- l2 E) J8 ]
You should consider upgrading via the 'python -m pip install --upgrade pip' command.2 n2 }5 q( Z% \% r. X( |6 g
0 w6 k/ p2 P) q1 s
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
( V; s; M$ z) t& n0 b- j4 h2 s& pPackage Version
$ X9 ^7 {4 c+ y" ?6 C------------ -------
- }, ]4 B% }$ m0 Kclick 8.1.7+ P) D1 o: N$ J/ a$ e3 E' V
colorama 0.4.6
3 z; z& L, P# x% d9 `flask 1.1.2) ]9 Z2 V: M+ _
itsdangerous 2.2.0
7 n! \* {7 Y! v* A4 [+ |Jinja2 2.11.2& X- s8 w o' {! k) z
MarkupSafe 2.1.5$ P8 ^* [- i; z% P' [- P9 a
pip 19.2.3- F/ ?% o2 L2 E% s% E% x
setuptools 41.2.0% s( b% u4 {) _$ q7 B; ?$ N
Werkzeug 2.0.0
7 I' l5 P Y+ T' M: m( Z/ N( rWARNING: You are using pip version 19.2.3, however version 24.0 is available.
3 v# o4 V! ]. M% FYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
e: b) z3 x' A2 b& d3 v2 @3 m7 @' t/ g4 F
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python
9 T- p* k+ X' k: h9 K, _$ i( Q! HPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
) I5 | u- v, l# r7 G' VType "help", "copyright", "credits" or "license" for more information.+ [3 e! {6 C/ _* O+ |+ q! o
>>> import flask
# o4 I7 u+ `, {+ pTraceback (most recent call last):1 q+ Q, N& O: q$ u8 B o3 g( r8 U
File "<stdin>", line 1, in <module>
9 c+ ~- x( E/ L# V: ? File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\flask-1.1.2-py3.8.egg\flask\__init__.py", line 19, in <module>7 R8 ?3 L ^) G5 A
from . import json, q w1 K3 E/ ]4 @9 G% i6 @
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\flask-1.1.2-py3.8.egg\flask\json\__init__.py", line 15, in <module>
* u8 O# G+ p3 z, v1 @$ }% } from itsdangerous import json as _json3 p$ C) e( n, }5 p& \1 Z
ImportError: cannot import name 'json' from 'itsdangerous' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg\itsdangerous\__init__.py)1 @! h2 e+ n, R; o7 a3 C) ~. J
>>> flask.__version__
5 H3 S' Z n/ u/ C% MTraceback (most recent call last):
+ R1 o( ^5 |( t9 U O File "<stdin>", line 1, in <module>. U0 W( i$ m$ ~' r$ n: I
NameError: name 'flask' is not defined
- _4 E+ k3 u1 \$ L E2 r+ w$ [>>> exit()3 D( k0 \2 {4 r! q% ]% l0 r# ~
% k) I4 J# m* W4 v' S2 _! `. h& g9 C
再次报错,说明版本依然高:5 X2 Z1 M+ o7 T7 i+ b" E& y
降itsdangerous版本:1 \& P' B" \( q5 Y
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.0.0"
/ {8 ]; h l: [; q# {# t* A8 MCollecting itsdangerous==1.0.09 m3 v6 n% x4 m7 v/ a4 S1 p5 d
ERROR: Could not find a version that satisfies the requirement itsdangerous==1.0.0 (from versions: 0.9, 0.9.1, 0.10, 0.11, 0.12, 0.13, 0.14, 0.15, 0.16, 0.17, 0.18, 0.19, 0.20, 0.21, 0.22, 0.23, 0.24, 1.1.0, 2.0.0a1, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0)0 p2 b" w: q0 G8 \
ERROR: No matching distribution found for itsdangerous==1.0.08 D- g7 i* P! _1 k# |4 m5 Q0 r
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
( G- R+ j. ?" y% k2 Q! XYou should consider upgrading via the 'python -m pip install --upgrade pip' command.: m7 b" F$ _5 b/ p. w( R
0 p g7 k7 ]$ [- G1 Q( KC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.1.0"
. f/ G; O9 ^# c$ @: a% gCollecting itsdangerous==1.1.0
X& t9 D% N7 b Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl
- z7 x' v' J0 UInstalling collected packages: itsdangerous
4 c. A0 G8 w7 p) _& r; BSuccessfully installed itsdangerous-1.1.0
. k0 ~5 e7 M4 d+ \; pWARNING: You are using pip version 19.2.3, however version 24.0 is available.
! J( K$ e3 k' KYou should consider upgrading via the 'python -m pip install --upgrade pip' command." X' Y. `# T T: m
- t7 o: g" X& {7 W5 l* U& z
再次验证:$ B) p) r \2 _
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python3 h8 ^% r, `- M( w
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32. D, n# m% C% h k$ Z1 [
Type "help", "copyright", "credits" or "license" for more information." h8 H3 C& T7 N7 ]+ w) G
>>> import flask7 T; B, \# M3 Q& \9 ?& Q8 U
>>> flask.__version__
% N }! p! S+ R- G'1.1.2'
0 {, x3 E( w: b>>>6 v0 D6 q5 N% Y/ W' G
问题解决。/ B7 L- M3 L2 T1 e5 X" L' j
|
|