|
|
C:\Users\admin>python
- P' h3 T0 v3 P, I0 nPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
) v6 V. t8 X. r y* q6 g' a0 lType "help", "copyright", "credits" or "license" for more information.8 q' I2 d4 y9 J6 r9 h+ `1 w% I
>>> import flask9 k6 _3 t V# F* t% w' {7 t1 b' \
Traceback (most recent call last):' l. M; c4 T% L( a1 \- `7 j
File "<stdin>", line 1, in <module>
8 C6 q! {8 m" M& R0 MModuleNotFoundError: No module named 'flask'' q# u0 V: Q/ K& f4 F) N; C5 R1 k! G
>>> exit
3 y, ]6 a% n! e O z3 bUse exit() or Ctrl-Z plus Return to exit( r' E; @0 @$ t, Z. [2 d7 s
>>> exit()7 k7 u- R, b. b1 m* P- k0 `% |
3 b: p$ R$ }( [% [( X
J5 a% a+ z: h8 n! w3 \! c% p
& Q, i; @: y' q( h! ]C:\Users\admin>cd C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.22 x' C2 H+ h, I5 u- N
4 _( y4 S5 |: C/ G2 J9 R. r' M
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir$ T" S7 R* S& j; H/ t6 n
驱动器 C 中的卷没有标签。
6 m i3 ~ z$ h5 U, P) g 卷的序列号是 9825-C512$ ^5 }5 \% H& C" J1 m6 R$ A# V
" P3 t2 h% F+ f! s% S) \' X C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
* T# m$ H" b1 V9 p% {. x3 }7 x
: C3 `' X! Q* w( L% N: Q5 @2024/05/25 17:09 <DIR> .
1 s; b2 Y8 n3 Z8 @- K# {2024/05/25 17:09 <DIR> ... D* V: G' J( k' v$ w
2024/05/25 17:09 <DIR> artwork* F+ Q! `9 |( l* h
2020/04/04 01:03 46,173 CHANGES.rst
. u# U% w$ r% J% W+ x9 n8 ?2020/04/03 22:25 6,624 CONTRIBUTING.rst9 j0 |/ g1 Z( y+ L# e z
2024/05/25 17:09 <DIR> docs
* J, S# O6 C8 c2024/05/25 17:09 <DIR> examples
/ \: u7 H/ B0 ~, b2019/11/19 10:25 1,475 LICENSE.rst4 c( B- x+ I# P, |
2020/04/04 01:10 152 MANIFEST.in
# R5 R9 y$ r) Y7 D9 g2020/04/04 01:10 4,547 PKG-INFO
3 l& j+ ~4 B! n8 \: v( m2019/11/19 10:25 2,161 README.rst# u, k R. Y6 K* w/ i) C
2020/04/04 01:10 480 setup.cfg
7 z) C2 e3 b% s2 |2 W2020/01/11 09:20 2,799 setup.py: } r' q* i1 B! A; C, \5 B7 @
2024/05/25 17:09 <DIR> src
, O1 K6 A( A0 w) T; r, g2024/05/25 17:09 <DIR> tests# S- D% v$ i* o) |
2020/01/11 09:20 1,709 tox.ini
2 Y3 M2 u" E! b/ ] 9 个文件 66,120 字节+ a1 Z6 _/ }: x |
7 个目录 22,689,103,872 可用字节6 W8 ~ a* u+ ~1 d( p
- P+ p* Q+ Y e* E6 c/ M+ A; H
安装flask版本1.1.2版本:$ f! E$ }( D" q3 j c! h3 f% _
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install h6 R6 M1 k% v* ]
running install
' n7 @. J N S; rrunning bdist_egg, U: x; L% g% ]# _4 t$ W- }# _1 e
running egg_info8 Q# b: ]6 ?& `4 k. G
writing src\Flask.egg-info\PKG-INFO
. p0 \( v* ?( R" \4 zwriting dependency_links to src\Flask.egg-info\dependency_links.txt! {( n% @2 b: q7 B3 {# c5 \
writing entry points to src\Flask.egg-info\entry_points.txt
5 H8 V3 ]% ]3 G1 @6 hwriting requirements to src\Flask.egg-info\requires.txt! I* ~; U ~: N) t2 J2 _& _, m
writing top-level names to src\Flask.egg-info\top_level.txt8 m. n3 E' i; O4 y6 G5 \
reading manifest file 'src\Flask.egg-info\SOURCES.txt'
* v4 A4 e2 u- O/ d: j. M/ w( }reading manifest template 'MANIFEST.in'
) T- F/ o2 C. n; Q2 f, A0 f! f4 dno previously-included directories found matching 'docs\_build'
. f9 C J/ E+ Z: J/ Mwarning: no previously-included files matching '*.pyc' found anywhere in distribution7 E6 D% E [1 k0 D3 R
writing manifest file 'src\Flask.egg-info\SOURCES.txt'
( Y+ D. E) K& xinstalling library code to build\bdist.win-amd64\egg& k e/ ?7 f( n
running install_lib
! j7 M* h. y. @running build_py
5 A2 T* X+ [; W- d @9 u: pcreating build$ h, J$ d, [! a
creating build\lib' v2 q# j7 S9 x6 w" T' j( d1 R' S9 ^
creating build\lib\flask
- p: n/ ]: [: Fcopying src\flask\app.py -> build\lib\flask; i9 [9 a7 q; q) h/ s4 ?
copying src\flask\blueprints.py -> build\lib\flask
) |! r V" Q2 A+ Ucopying src\flask\cli.py -> build\lib\flask1 z. {/ v) }( c
copying src\flask\config.py -> build\lib\flask
9 }$ c' P& |7 W: V4 p: Jcopying src\flask\ctx.py -> build\lib\flask
7 O+ ?2 u0 `, vcopying src\flask\debughelpers.py -> build\lib\flask0 f C; T% ^) t# ?
copying src\flask\globals.py -> build\lib\flask0 b7 k6 l0 E& J4 J
copying src\flask\helpers.py -> build\lib\flask
: x/ v; C f( ]/ p F- x5 Zcopying src\flask\logging.py -> build\lib\flask
7 @1 e. F K; X5 Zcopying src\flask\sessions.py -> build\lib\flask
! F4 q# V$ k9 A' }" N* pcopying src\flask\signals.py -> build\lib\flask* z! V" @. y( U e' I
copying src\flask\templating.py -> build\lib\flask
) c/ ]( l! v3 a9 I, u2 Hcopying src\flask\testing.py -> build\lib\flask# d- I6 B, u- l" B. P& u" P
copying src\flask\views.py -> build\lib\flask. q/ z7 |5 ^7 h( w1 U
copying src\flask\wrappers.py -> build\lib\flask
- J7 D* |* P! Y k0 Y8 g Bcopying src\flask\_compat.py -> build\lib\flask
# S/ p- W. z: ~( g2 R/ a+ e0 Ecopying src\flask\__init__.py -> build\lib\flask; o% v0 D1 F) v) p" g0 a+ p
copying src\flask\__main__.py -> build\lib\flask
! A2 K% [3 ]' }creating build\lib\flask\json# u& F+ B+ m* r0 ]
copying src\flask\json\tag.py -> build\lib\flask\json
6 U9 }! N3 P, Y: Tcopying src\flask\json\__init__.py -> build\lib\flask\json3 b( M/ J; R( n. T
creating build\bdist.win-amd64. l4 E R2 G4 a! [( i: ~8 W
creating build\bdist.win-amd64\egg
) {- A6 l. Q9 X6 r f5 Lcreating build\bdist.win-amd64\egg\flask
5 B. e( o0 b6 o; I1 icopying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask, c; n! Z. S* b8 a0 X; r0 V1 @
copying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask4 e V& z- H9 ]6 t, Q" p' f" h
copying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask8 Z# t+ ~7 A# y0 C+ G
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask
. i2 n0 O& {) y+ icopying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask
* R8 H7 p3 b+ C3 X: X. o. q* ucopying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask: `: ~+ c {- T
copying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask9 C z+ f; \9 s' |( s: Q% D
copying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask, a4 i1 a h# L5 O
creating build\bdist.win-amd64\egg\flask\json
s" O7 v2 `9 E: |0 L- k* tcopying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json
. L% N. s1 @+ [' g! Wcopying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json, }! o- i. Q+ `) l! P8 T0 P9 M
copying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask
2 V+ g1 p: T& R5 X& B9 p. U8 hcopying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask- u0 G: U: W1 _1 F9 d
copying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask
0 u' Q( {/ h3 j# Gcopying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask& S1 X( }7 p" g7 S) F- {& J
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
) s1 i v7 f8 `0 H6 |, M: zcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask
& R" w$ V2 x# _1 G a E, c9 vcopying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
- r. A* r& O |' S6 V' Qcopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask3 V! ]5 L8 `0 C8 v
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask' F2 m0 h E+ k: A4 K6 b( D
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
* m% _9 v( q" \. S) {7 t7 m6 p4 dbyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc
A; C7 X5 J/ x8 d: Ybyte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc- a9 _% J2 R0 S, g) r1 e! m& G
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc/ K$ v. i Z, N6 H
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc3 \5 s. O' D9 z: q8 y' F5 }
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc2 G) Z) D" c5 {/ r8 I4 f' N1 H
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
7 y' F f4 ^% E$ sbyte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc
! A5 w5 I; T' |byte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc
b/ T8 ]! j& Y6 abyte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
$ L% F( ~8 K* Fbyte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc
) |0 b2 e9 U: C! x/ l: xbyte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc# l+ @* Q( S) J5 ] d' B5 b- d
byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc8 I Q) B' \/ L) {
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc0 U l( Y( B2 H* G! \- [
byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc
% a; Y/ ^, Q& b8 q' c; `byte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
$ @8 I r6 H( D( k2 Bbyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc. I' C# H4 H# v! |
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc
; v( A. W4 f8 s- H0 P! U) Gbyte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc6 Z$ o/ v% f/ T5 v1 M5 w
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc
* _) w1 e1 J, S+ L2 ~. ybyte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc4 _, k- x6 N: Z
creating build\bdist.win-amd64\egg\EGG-INFO
' z( x' `0 A1 Q6 ^copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
$ Z6 t- i# k9 m1 Y4 k) @7 G2 d8 mcopying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO" x, b, F* m1 p$ K& Y& \6 c1 V, D
copying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
3 N7 M m2 q) X6 ocopying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO' E u& l2 v& R. ^( b
copying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
" C2 H9 j/ g# x V+ A1 |copying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO# Q( U3 ? G! [9 U; y- ]" V4 s$ r
zip_safe flag not set; analyzing archive contents...
Y4 |0 h9 m- u. v" N7 F2 eflask.__pycache__.app.cpython-38: module references __file__
+ E/ h1 H- ?. g; [) i$ \flask.__pycache__.config.cpython-38: module references __file__
$ K% n. y5 n w" T! ?flask.__pycache__.helpers.cpython-38: module references __file__
" C4 F, @# `% R: b {* gcreating dist
) [3 q# d1 g4 l, I$ K" j( Z% mcreating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it6 s& g' g4 K( @' h( \% P
removing 'build\bdist.win-amd64\egg' (and everything under it)
* V; Z! R v% n1 |1 tProcessing Flask-1.1.2-py3.8.egg
. |; ? Z/ C, ~/ E+ ~' H: Wcreating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg1 k2 m" [* d4 K- Q/ k0 I J) L
Extracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
8 r& v! v( E$ l# C" fAdding Flask 1.1.2 to easy-install.pth file
2 g: w+ L. y% y6 `2 Y1 p2 \# QInstalling flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
+ z" y7 R8 v$ K$ J0 qInstalling flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts4 Q! Y U8 T( Y3 ^
8 e' e* U1 d5 ]( h0 J+ _% DInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg
: Z! \- F# M" b+ S, ?Processing dependencies for Flask==1.1.2" z [( H0 ^5 H5 q. a: Q, Y0 E
Searching for click>=5.1% K, Q" x8 A; S. ~; [
Reading https://pypi.org/simple/click/
, [) _0 u1 x3 n8 I5 UDownloading https://files.pythonhosted.org/p ... 9a7931d1582f3390c28- e5 j# ?6 d; k$ v
Best match: click 8.1.7
/ b1 [+ v! o1 {# I+ ~Processing click-8.1.7-py3-none-any.whl0 |3 x2 m0 Q: a% [0 I/ L: t0 p
Installing click-8.1.7-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages* x# ?$ O0 A( A2 E- r
writing requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg\EGG-INFO\requires.txt1 Y1 c- x3 B, ]! ]; j$ T; I$ }
Adding click 8.1.7 to easy-install.pth file
& R2 I, \3 V0 }: M4 g6 s
; h3 `0 |8 \8 S" j% [( ~+ _Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
/ N) ?+ b4 }0 S1 Q) j- R' \8 TSearching for itsdangerous>=0.24: `3 J5 t% N. J5 S. o( t; T
Reading https://pypi.org/simple/itsdangerous/4 k8 x. D/ t! G5 a
Downloading https://files.pythonhosted.org/p ... db01a3f5891b98700ef' j, K4 n2 D( {; E) S
Best match: itsdangerous 2.2.0! ~/ ?. G; b' e# x
Processing itsdangerous-2.2.0-py3-none-any.whl- g$ x* o+ t8 R- J6 `% Y2 ~4 ` l; J
Installing itsdangerous-2.2.0-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
9 f" h) }) D6 [% A8 bAdding itsdangerous 2.2.0 to easy-install.pth file
- H* o3 X. ^: s) S! B6 u6 U; U" Q, D. h- S' J
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg
# j# q9 T. o2 v& @# iSearching for Jinja2>=2.10.1 ~% k1 u5 H8 Q. E
Reading https://pypi.org/simple/Jinja2/
& v9 c$ ~3 T4 d9 c# YDownloading https://files.pythonhosted.org/p ... fe6c89c6f9c7d25197d
, N$ Z l( x2 A: jBest match: jinja2 3.1.4! K/ S8 j' J7 h8 f5 V' Y N
Processing jinja2-3.1.4-py3-none-any.whl6 m% Z6 Y* O7 Q
Installing jinja2-3.1.4-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages' P9 q- d8 G; F' c$ V
writing requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg\EGG-INFO\requires.txt* Q3 j: d9 n4 E p) S' i* E
Adding jinja2 3.1.4 to easy-install.pth file
$ S3 u6 [ { z+ b1 ~; E" P& |5 \3 J, g
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg
) R# f6 ]) I' MSearching for Werkzeug>=0.15& t; B3 \) ?, g" m
Reading https://pypi.org/simple/Werkzeug/
; p+ E8 Y$ P9 Z7 fDownloading https://files.pythonhosted.org/p ... 535fdfe155a17cc48c8% ~1 J( P8 e7 M9 J# N" j( E
Best match: werkzeug 3.0.31 D9 G5 @" B3 R) v
Processing werkzeug-3.0.3-py3-none-any.whl& r! l6 ]# `" o; g2 h1 l- P% G
Installing werkzeug-3.0.3-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages0 M- R) v. ?- O1 `
writing requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg\EGG-INFO\requires.txt+ w, ^& T5 E0 ]$ o+ Q1 Z
Adding werkzeug 3.0.3 to easy-install.pth file6 e# a/ k4 {& U& Y$ f E
) j2 W& t+ V1 E
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg5 I) W7 q8 I6 C+ P1 J
Searching for colorama9 k" s" J+ K9 `9 ^+ T8 @
Reading https://pypi.org/simple/colorama/& x4 g2 @8 w& c( o& q, r% M
Downloading https://files.pythonhosted.org/p ... 11c16baf57afb285fc6
& V% G! m0 l& W0 b( R( e+ ABest match: colorama 0.4.67 u' `6 u5 X+ U8 T' X! b
Processing colorama-0.4.6-py2.py3-none-any.whl
$ I1 I8 ?$ M3 J x: ~( VInstalling colorama-0.4.6-py2.py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages9 G8 {0 [% t2 B3 Z# u* U2 x
Adding colorama 0.4.6 to easy-install.pth file" x( v$ p2 b! o/ p6 J$ h8 L" J1 t
4 G4 [! E: Y) a9 s/ UInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg7 n% f. D* P. m$ k0 m, e# }
Searching for MarkupSafe>=2.09 x. ~! u1 {- k6 R
Reading https://pypi.org/simple/MarkupSafe/
6 ?% u3 h6 ?* w1 \3 c; y9 BDownloading https://files.pythonhosted.org/p ... b63c00bd1a709c6544b
: Z* U0 K t( D& ZBest match: MarkupSafe 2.1.5, ?2 q5 U9 ^9 p4 w. R& ?
Processing MarkupSafe-2.1.5.tar.gz5 H& d6 K4 ^5 M6 A6 d, u
Writing C:\Users\admin\AppData\Local\Temp\easy_install-am4pt4f4\MarkupSafe-2.1.5\setup.cfg6 i6 U2 `& E# M% ^- B- w/ O
Running 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
: I5 O4 q0 ?3 k4 F4 V" [' Gno previously-included directories found matching 'docs\_build'
/ Z* Y; S+ ~( }1 k1 lwarning: no previously-included files matching '*.pyc' found anywhere in distribution
8 P# v4 w; X5 r6 K==========================================================================
) a$ ^$ l' G9 f7 P T7 ~9 `WARNING: The C extension could not be compiled, speedups are not enabled.* [$ W9 Y u' |- n h9 B; N
Failure information, if any, is above.: N2 ^: q3 y$ q" l( Q1 Z
Retrying the build without the C extension now.+ | Q) v# c7 q! }
==========================================================================/ h% |5 [! r1 D$ i
no previously-included directories found matching 'docs\_build'
9 {7 }# m, S3 J6 W( ywarning: no previously-included files matching '*.pyc' found anywhere in distribution
3 R7 `8 n# t- z* [zip_safe flag not set; analyzing archive contents...& Y3 L: u$ Y, x. p
==========================================================================+ P1 v A* n3 d0 s5 i
WARNING: The C extension could not be compiled, speedups are not enabled.
9 N5 e; d8 |5 Q6 r D2 ^$ e0 APlain-Python build succeeded.
/ A' }; Z2 a3 [5 Y* D==========================================================================" {- _$ H& [, n" c* |6 a' n" A g3 N
Copying markupsafe-2.1.5-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages" g2 Y$ |- j2 q
Adding markupsafe 2.1.5 to easy-install.pth file
( `) y7 b9 Z6 T. ?( j
B' k9 J6 e% c) FInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
# F# n5 f+ m9 ^3 q! U' I4 i8 BFinished processing dependencies for Flask==1.1.2; e/ e7 ^) W* I, W6 t0 W
. P3 G0 a/ X6 \. `, M1 n, |. t3 VC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python" K6 ], E X3 h
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
' [$ y" f3 `+ K, GType "help", "copyright", "credits" or "license" for more information.
& D) A: x: C0 Q>>> import flask
+ h3 ?- e' g, A$ p6 X6 UTraceback (most recent call last):
4 x0 u- D. }( ` File "<stdin>", line 1, in <module>
' w. B0 j3 m9 y5 ~2 \4 b 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>
$ E3 n4 K% q# C4 ] from jinja2 import escape
8 t7 D8 O. V+ ?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)
; U$ M$ R. c0 w! z1 }. e* C4 e# y: q& `3 \8 p$ f8 l7 e
, N# ~) F5 a" q% H1 P
引入报错:" Y: @/ @: s7 }% K g2 Q/ G
解决pip 组件版本: k0 t; P' r, q7 n& @9 T; Q% }
, b0 e4 I& ?- G
2 L7 Q' O+ Y0 i
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list, C4 u$ C6 L- E6 O
Package Version8 v1 e7 w- T( x- g, {# Y7 A) w6 G
------------ -------
& c3 [+ P. O {9 @! C" D6 l* `click 8.1.7
[# w4 ~3 L8 N4 e, S p5 z2 a# \colorama 0.4.6
{2 f$ q# [1 v5 q# X/ R1 w, ]flask 1.1.2 s# k& \: E. Q/ |9 V, Q
itsdangerous 2.2.0& g0 W, R: @/ G
jinja2 3.1.4$ _3 {# v9 P. Z% ]- Q9 p6 @3 q
markupsafe 2.1.5
R/ }- d" q# S" X1 z0 vpip 19.2.3
5 N% ?9 u$ j3 Nsetuptools 41.2.0
% I+ E/ P2 V! a% P X, ywerkzeug 3.0.3
+ k6 R3 N: G8 d+ P- _8 d2 j. j8 FWARNING: You are using pip version 19.2.3, however version 24.0 is available." I$ M9 r% {: P/ ~( l$ r1 Z! K& Y! H
You should consider upgrading via the 'python -m pip install --upgrade pip' command.! D' Q/ j+ P# E. Y3 ^ \* K" \" l
) t7 ]' e2 [+ T* j4 }2 b9 @- KC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "jinja2==2.11.2"
# b* i2 g0 q% j' l" A. {Collecting jinja2==2.11.25 O) B" f: Y! N
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl (125kB)
# z1 u* g$ n+ s: | |████████████████████████████████| 133kB 652kB/s
3 _3 y% t9 Z4 g8 ? R _Collecting MarkupSafe>=0.23 (from jinja2==2.11.2)/ H, c" i' J/ E) G: B
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl6 @7 e; l8 ~, E3 `+ y
Installing collected packages: MarkupSafe, jinja2
+ G% z$ L- `& L K% |' sSuccessfully installed MarkupSafe-2.1.5 jinja2-2.11.2' W2 y5 v, e' R) o' g
WARNING: You are using pip version 19.2.3, however version 24.0 is available.1 Q! h" D* w, K' a: R: c' g X" v4 _
You should consider upgrading via the 'python -m pip install --upgrade pip' command./ I# o* s2 ^5 z
. ^. p2 Z; Y8 p: x1 Z
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list7 a ~: {6 D/ W
Package Version
3 R) X" x, ~& _------------ -------
* L* `) y( E# k/ x" L1 Q2 F3 Mclick 8.1.7% \: B% j2 c( L0 T2 S3 o- y- G
colorama 0.4.6
! \7 D6 h% f1 H. b( Eflask 1.1.2
v6 ^: ^, c8 C4 M" w4 Q% V4 kitsdangerous 2.2.06 Q) i) Z: E O3 o b
Jinja2 2.11.2( \: H. I' q. P! T x& g
MarkupSafe 2.1.5
/ J+ f9 N, W1 _" r; E2 n/ ~; V: npip 19.2.30 y# Y; ~) V' E
setuptools 41.2.0
2 [2 `2 l* q+ B" mwerkzeug 3.0.3/ h' Y4 B. |9 i% N* A; I, W
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
2 {7 o- C3 N7 ^# X1 KYou should consider upgrading via the 'python -m pip install --upgrade pip' command.7 [! b5 b* ^7 b1 s
D5 \0 {+ C1 B2 R% T" fC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>ls
4 d& W) y2 `6 e+ g) ?6 @- ~'ls' 不是内部或外部命令,也不是可运行的程序
! L' x# H9 G1 d7 X或批处理文件。: N, Q) J/ {0 J0 R! B; M$ ^; `' e, ~! i
! }) w0 _- w7 ~, `* d7 c7 XC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir, \' I# b7 I4 n. s* j. f% r* a
驱动器 C 中的卷没有标签。
9 O* d3 w5 H( |; j$ _0 V5 ~- Q 卷的序列号是 9825-C512
' C2 X9 \1 X' A: ^; N7 m6 J: c/ n! _; K5 Y# X! B+ n! h) T, E8 U
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录" o4 u9 \5 p9 f/ z- q4 n/ m5 m3 r
1 G; P+ l, {2 n s# v: L8 U& c2024/05/25 17:10 <DIR> .5 `/ ~7 O+ {2 C5 [4 U+ @
2024/05/25 17:10 <DIR> ..' ~* m/ e( j/ }; k
2024/05/25 17:09 <DIR> artwork) X; E8 ]1 a A+ |, e
2024/05/25 17:10 <DIR> build
3 V9 e$ _9 N3 M/ ?: r4 u2020/04/04 01:03 46,173 CHANGES.rst- G! [0 c$ P8 S9 p
2020/04/03 22:25 6,624 CONTRIBUTING.rst# e/ g& c3 w7 b( k2 }& Z5 ]# d" H
2024/05/25 17:10 <DIR> dist- _8 O( N6 d F/ b
2024/05/25 17:09 <DIR> docs q, A [: ?) c$ S" F
2024/05/25 17:09 <DIR> examples
( b4 g+ }- O- H9 n- T7 b; a2019/11/19 10:25 1,475 LICENSE.rst4 Y3 _; M8 P+ `+ ]0 C
2020/04/04 01:10 152 MANIFEST.in
7 {5 v6 R) v2 r( v, N7 _2020/04/04 01:10 4,547 PKG-INFO
: L: }, y' m) f5 t+ Y2 ^& V2019/11/19 10:25 2,161 README.rst
& p. V$ Z. B# L* U" G/ v/ g2020/04/04 01:10 480 setup.cfg% Y1 j; o) H& |* a$ P! |/ [+ H5 I2 q) R
2020/01/11 09:20 2,799 setup.py$ |5 X; K; p( l6 S* l" p# F
2024/05/25 17:09 <DIR> src
+ S% F( b; `0 Y4 E2024/05/25 17:09 <DIR> tests) v$ J+ k0 {6 t4 U3 F* T' l' J! A" i
2020/01/11 09:20 1,709 tox.ini
# |: [; P* y) @. U: A9 A; ^ 9 个文件 66,120 字节$ |% G# B* k: J4 L8 I2 c* M
9 个目录 22,681,739,264 可用字节' `4 w% g$ B7 h6 P
3 S$ S$ b3 w# FC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install
5 w0 n& l5 t# U; W y+ b, c0 I6 F' ]running install
' n0 G s [" |# i4 T7 I7 L) U( Irunning bdist_egg) r1 Z+ p- Z! p; C: @$ Y _' V" R1 Q* x
running egg_info
! f# Y7 [6 g. U, {- Ewriting src\Flask.egg-info\PKG-INFO+ d1 z. ^; [1 d2 j: P
writing dependency_links to src\Flask.egg-info\dependency_links.txt4 G5 s2 P# a- Y8 J
writing entry points to src\Flask.egg-info\entry_points.txt( o4 k* P' t6 |6 Q: c6 D$ Y& w
writing requirements to src\Flask.egg-info\requires.txt% q- ?7 O" q; w" p
writing top-level names to src\Flask.egg-info\top_level.txt. [/ q+ I5 h$ E0 H! k7 d5 {2 @
reading manifest file 'src\Flask.egg-info\SOURCES.txt') F( e7 K! g" e4 G8 B# |* {; T
reading manifest template 'MANIFEST.in'# Q; V; v w" c0 K1 q# d
no previously-included directories found matching 'docs\_build'! o/ g: U! C1 e# c
warning: no previously-included files matching '*.pyc' found anywhere in distribution
! h0 X4 ^7 [( u5 s$ C, ]$ ewriting manifest file 'src\Flask.egg-info\SOURCES.txt'9 R' u' t: g/ b$ t M. I% l
installing library code to build\bdist.win-amd64\egg
3 y: O5 d) O" ^ z) R( B( krunning install_lib! |# q0 i: f. `1 |
running build_py
* t& F, N- @0 V/ ^' z& `& P( Pcreating build\bdist.win-amd64\egg
& ?/ U. l5 a5 p0 L! n4 K$ h* `creating build\bdist.win-amd64\egg\flask0 M2 f( j# T6 h7 u
copying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
3 Y& N9 a* q" R U$ \copying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask
1 }6 p& Q9 O# c9 l3 zcopying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask! E6 Q" t5 v3 R* y. H5 r: W2 I
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask
7 i' G3 |- a& ?; E1 }" u! Mcopying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask* O. H2 n+ q" `; p" T6 F3 R
copying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask
) u$ i& [6 ~1 a) H8 bcopying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask
B( U) n f0 p7 D6 ?5 \/ i4 acopying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask$ I5 l5 q* P) C& B( [: _8 j$ [
creating build\bdist.win-amd64\egg\flask\json
E. p2 ]% J2 x: O/ h: n4 Wcopying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json
4 U% {, ^$ W9 t$ N0 ^9 ncopying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json5 ]: c5 |0 \7 M9 M; `
copying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask
0 V g, E7 q) B$ Y$ d* {" ]copying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask* n2 N$ ]4 ^0 x6 K& \4 ^
copying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask S! B% i* {9 \8 `& O6 x0 U1 x, |
copying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask; f1 _5 b2 ^& l' [+ ], i# U
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
# T' a! Y; r) a- ~: i% j. [9 D4 kcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask/ L* {9 g9 Z* C: d/ A* g
copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask" k8 |' n5 u; F; A% n6 h6 _+ I6 y- f
copying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask
$ ~( q$ o' \/ n) J& N7 T# ^copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask: ^4 b. n* o4 I" ]
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
2 i" h' B B, ]9 ebyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc
. V8 I. a6 Z- P$ V4 K( Cbyte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc, b$ B2 X) } a. z" S
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc
( x7 m* T* |% h; n+ V; _9 x1 c Rbyte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc& Y4 g/ s, w/ z9 x
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc4 O1 W' N! m8 ?2 W9 y j
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
' n ?4 o. S/ z- J3 r6 kbyte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc+ i A# H# s' v1 u8 r- }6 e/ t
byte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc; e0 o" z* l( ^. w% R9 O
byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
. O ?. B& g* g# d) T* ^byte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc
' N3 H* A; G7 G s1 m! e; \byte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc4 R) f9 ^6 N4 Z" h5 ^5 G4 f5 C
byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc& J! V; Y3 \$ g/ E/ v
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc
* ]7 U# c5 m, E fbyte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc1 p$ Y h' M6 A6 ?
byte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
6 d5 b8 B3 J: L6 S, E2 zbyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc
) w5 ~/ I- u2 @$ p! i; ~' d3 A* j8 gbyte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc
# F& e. f" s6 f; dbyte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc! x$ n0 S6 ?3 r+ F; [: v
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc/ X0 A6 N( e$ m+ m# O, ]# L, `9 |8 ^
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc: o d$ g: u' v: Q; ~
creating build\bdist.win-amd64\egg\EGG-INFO
- |. X, ?. d" D2 N- L# z3 e: C. [copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO& y# p3 `6 O. l1 T
copying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
/ D$ A: Y4 ?: N Ncopying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO+ c! r3 f+ }# E$ e4 u
copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO# d. u i. q! `* B
copying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
* V7 Z, \5 b2 }7 m3 n* ?copying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
$ O3 G {# m" }3 A8 hzip_safe flag not set; analyzing archive contents...
7 Y- i. w" o- L' T) oflask.__pycache__.app.cpython-38: module references __file__
# g" { R, W) M$ D( M! Zflask.__pycache__.config.cpython-38: module references __file__4 X; J- V' u1 g* v* `
flask.__pycache__.helpers.cpython-38: module references __file__# M' M! Z1 F5 n1 ^- y$ ~
creating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it" T" u- G8 A6 ~6 N8 [; H
removing 'build\bdist.win-amd64\egg' (and everything under it). P/ b' i- u* S& J5 J8 J
Processing Flask-1.1.2-py3.8.egg8 e7 G( O+ M+ s0 k- L: [6 t
removing 'c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg' (and everything under it)
! K4 X6 x: ?$ e6 v/ {creating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg M+ g7 J& N4 o. I2 V6 W X
Extracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
/ Z* S" ^" [. g1 @* f& }# ]Flask 1.1.2 is already the active version in easy-install.pth
/ F; |% R* T, `8 M& QInstalling flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
, ?) }) ]: b# R d/ V3 ]Installing flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts% S3 G3 o, [8 L7 b0 m
3 z7 M/ S$ v4 L1 i3 }
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg
/ E, _; y+ m6 i9 A$ z9 J' }Processing dependencies for Flask==1.1.2
8 j# b+ }2 q; Q9 q+ d/ `+ ]; OSearching for click==8.1.75 U6 }/ ]. I+ B; g) o
Best match: click 8.1.72 w) \ e6 `# o0 Q8 v
Processing click-8.1.7-py3.8.egg
9 F" b" _* U' }2 iclick 8.1.7 is already the active version in easy-install.pth
, Q) \' @! d* K( S, \# l+ ^3 T, l, G5 k0 s. {4 y- H& l2 T
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg! ^- ]/ g8 x8 w. E. Q3 a8 O
Searching for itsdangerous==2.2.0
: T0 F7 h' `& ~# i; `Best match: itsdangerous 2.2.0
- l, b% x' O7 U) JProcessing itsdangerous-2.2.0-py3.8.egg
7 k6 K& K" r9 m9 u% X5 Aitsdangerous 2.2.0 is already the active version in easy-install.pth
& P1 h' Q- Q7 [% S* i' @$ c7 k: E# O+ c; v% V8 n6 W
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg
0 E/ t3 N8 b/ G U; `& oSearching for jinja2==3.1.4
! e4 {" E7 m8 ^+ J& m' pBest match: jinja2 3.1.4
; ?( D! I" W0 B, ]/ nProcessing jinja2-3.1.4-py3.8.egg9 }7 I; X! @" M$ l/ e
jinja2 3.1.4 is already the active version in easy-install.pth
7 F1 }! J" J0 a9 ?: U5 v3 m r% Q2 ~# E/ O* F
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg3 J @8 d5 e7 Z# M
Searching for werkzeug==3.0.3) t# V% ]* k, R
Best match: werkzeug 3.0.3( z, _* ~0 d% ?4 l, i
Processing werkzeug-3.0.3-py3.8.egg
# L, e5 B1 U7 y. \" ywerkzeug 3.0.3 is already the active version in easy-install.pth
% e5 s) S k1 }4 c
% K, f: h! ]& [Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg
5 e7 |9 e; t8 e# QSearching for colorama==0.4.6
- |6 v4 Q; o2 O5 I0 BBest match: colorama 0.4.6
3 e- V" x# t, V- r" w4 |Processing colorama-0.4.6-py3.8.egg; c ~4 C8 N( j4 @
colorama 0.4.6 is already the active version in easy-install.pth F0 k Z$ W6 d. F
7 Y+ u# d' }# t: I2 f6 G8 hUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg K! A7 T5 m* R; R( g
Searching for markupsafe==2.1.5
8 E7 |$ @. O g3 }$ t+ OBest match: markupsafe 2.1.5 `( d5 ^7 O$ ]- }/ p8 C1 [ X
Processing markupsafe-2.1.5-py3.8.egg
' ?6 W2 }1 b# T* W3 @$ Tmarkupsafe 2.1.5 is already the active version in easy-install.pth
" h! g# K# S! h: X; A
( }( O- V7 Z6 T7 o' C7 a9 i5 YUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
' w2 `: \1 q# D5 qFinished processing dependencies for Flask==1.1.20 R0 Q) @6 s4 G3 g: d2 ?
3 x. q' F+ n8 M- u; L3 E n
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
\: }! U5 g) f1 WPackage Version8 ?$ ^, r4 ^6 Y$ ]0 l+ Q, z: n( V
------------ -------/ O+ G! ~. E; Z) i
click 8.1.7: P5 V7 S' g! T
colorama 0.4.6
+ R# x' T' M; Z' `0 a9 ^6 F( Yflask 1.1.2
8 m& ?% ^ m) e4 titsdangerous 2.2.0
* ]8 e" N# j* J2 w1 w, \Jinja2 2.11.2
- J1 V& @, z) }8 C5 R* D6 `MarkupSafe 2.1.51 w6 ^+ ^9 h: t( o
pip 19.2.3
1 T" Y/ g- W- K7 z1 k) W ^setuptools 41.2.02 I' ^0 K" n1 z) _$ Y- z/ X
werkzeug 3.0.35 S. J9 C4 _+ m
WARNING: You are using pip version 19.2.3, however version 24.0 is available. Y% c& f9 Y% m- \0 }- ^: [3 M S( f7 p
You should consider upgrading via the 'python -m pip install --upgrade pip' command./ E# j' f; P# C3 y
3 x6 J/ I( k/ v C
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python6 [8 S4 ?( _- t
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
. `9 o7 |7 Q6 ^* w# q! UType "help", "copyright", "credits" or "license" for more information.0 t* W$ H8 Q5 V! B' `0 q0 V
>>> import flask
5 D. [/ n/ o: a& M3 STraceback (most recent call last):
% S# m9 c" m1 E File "<stdin>", line 1, in <module>7 @' l; M7 X, d) k' l
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>6 ~) X/ ]5 \. f$ ]
from jinja2 import escape
/ _ T G' D, W3 @8 V File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\__init__.py", line 12, in <module>
: M/ g Y7 \; ~+ B, H from .environment import Environment9 d' f4 n# W! U
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 25, in <module>& G; Y Q9 n0 [. p
from .defaults import BLOCK_END_STRING" \( a% `5 u% I2 P; p
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\defaults.py", line 3, in <module>
- ]# P; ]# D. X9 G& \! T8 m g+ ` from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
; c1 E3 J, g. z, r% i, C( i6 r+ D File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\filters.py", line 13, in <module> B* m# M; u7 C3 H6 Q5 r: G) Z
from markupsafe import soft_unicode6 O3 a; \+ @' J2 O
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\markupsafe\__init__.py)
0 z' l2 M, @9 \1 h, I" V* u* G>>>8 s7 k( O* a s! n. W9 I
>>>5 ]" E1 `- M- U. d( ]$ H3 Z/ P8 T
>>>
* N* E. _2 i9 S/ J8 S>>> exit()
) t: z4 r c4 \) o/ N. f
" }. U( w% t: t$ v# g$ h还是报错,版本太高,将版本。
3 W- ~. \0 P4 U( R: z% C9 U" t' c6 s5 }" V6 R' L: H' z
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
( R8 z5 {- s& _' X1 JPackage Version
! l, H) p6 Y& ~) n0 P4 x------------ -------5 y- m: F5 F* n% C3 Q* g$ `3 T
click 8.1.78 Y* z) M. ~- y+ K) |9 t
colorama 0.4.6+ h& G6 F B( S* t' e; K- ~' |
flask 1.1.2
( V4 B1 V$ `) k, Q6 h6 H3 gitsdangerous 2.2.0& e! E- M! w- k$ n3 t
Jinja2 2.11.2
* ?2 O8 A2 X+ S# Z9 C3 mMarkupSafe 2.1.5, ?: @ b4 x7 p4 z# I
pip 19.2.31 A* S) `) e' a8 k/ X5 p( S$ g
setuptools 41.2.0" G1 F7 {) o8 [* |* }
werkzeug 3.0.3+ F9 R' C" F) L* b
WARNING: You are using pip version 19.2.3, however version 24.0 is available.5 j: N5 H; z2 }
You should consider upgrading via the 'python -m pip install --upgrade pip' command.; a& a( J1 n4 k% J
4 P- }$ i% A( P j
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"+ |( n5 \) H9 `# M6 p* m# X( i
Collecting MarkupSafe==1.1.1" c1 m0 I- A9 m7 N% X* W: ~; @; k
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl! r' W( `: t+ G4 l$ ^1 A
ERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
. b% s" E# R: |6 mInstalling collected packages: MarkupSafe
s7 c L! A2 M. L) HSuccessfully installed MarkupSafe-2.1.5% Y5 d! @* a4 q W% Q6 m! ]
WARNING: You are using pip version 19.2.3, however version 24.0 is available.8 U3 V, P; k& [* V* F, P
You should consider upgrading via the 'python -m pip install --upgrade pip' command.8 N) z( J* W! w% J& q' |4 i7 B. t
! M& \5 H5 M7 i, e' Z6 wC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1" 0 }; a" f2 h# s2 b8 K" z4 s3 ^4 C
Collecting MarkupSafe==1.1.1
' R* ]1 I9 H" O9 M) t: p% } Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl; y/ Z; S0 r' D+ g" x4 j6 Y# [1 {
ERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
$ s" Y6 d( w; H, e# q/ p# mInstalling collected packages: MarkupSafe! f. Q: E) o7 `' r7 v% [
Successfully installed MarkupSafe-2.1.54 b! T# `# i, e4 O a. P/ l- @. M
WARNING: You are using pip version 19.2.3, however version 24.0 is available.% Y2 t/ H8 g7 w. V; W5 U
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
6 `1 b2 e5 c: b; L5 i* @, l* o% ?5 E" m
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "werkzeug==2.0.0"
2 n! Q8 B; @9 z1 FCollecting werkzeug==2.0.0; \7 `; b$ O# I9 H! M( k
Downloading https://files.pythonhosted.org/p ... .0-py3-none-any.whl (288kB)
: G/ [& V+ K# T1 m5 B" E- I9 L: B' U) O |████████████████████████████████| 296kB 656kB/s- g! R1 ~4 N# h" H1 B) s5 m. N* p
Installing collected packages: werkzeug
; O9 B! W8 L# } v9 iSuccessfully installed werkzeug-2.0.0
1 Z, s' G: V- aWARNING: You are using pip version 19.2.3, however version 24.0 is available.! a4 q! A+ t' N+ ?9 k$ G0 {+ b
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
5 a9 @5 q/ G" K; o/ n* E+ i2 j, E! `4 q
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"( @; ]& g# Y, O& u n# j
Collecting MarkupSafe==1.1.1
9 U& m; ]$ h3 ~. c& t2 y Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl" N4 n$ S2 N" S
Installing collected packages: MarkupSafe; |, U9 `8 D4 o( R
Successfully installed MarkupSafe-2.1.5, T {+ n5 m+ j. k1 h9 G J% ^
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
5 g4 h6 ]+ ?- c5 b6 |You should consider upgrading via the 'python -m pip install --upgrade pip' command.
+ F+ Q* o9 }; [' A3 s) Y8 f: k3 V& [2 k' A$ v
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list, O- h" s n* a, ]2 R
Package Version. i! `5 i- O5 B
------------ -------
' b o* F# W/ ?0 Z% hclick 8.1.7/ q% Y+ F$ e+ D) V0 c( e; `) r1 a3 Y2 y
colorama 0.4.6
7 \+ l7 g) L5 \' m, ?flask 1.1.2# J3 ?. M+ y5 L5 V* M
itsdangerous 2.2.00 b- i, e, c5 ^1 _" ]( u
Jinja2 2.11.2
0 p$ c$ C* Y- k5 E# t- t$ mMarkupSafe 2.1.5
3 k! s4 g; D% H5 i( |5 i0 Ipip 19.2.3
: v. F9 U4 f' d D5 Fsetuptools 41.2.0
a; n! n, L( p3 ^! D" ]( FWerkzeug 2.0.0# S: P* Y5 s \# T8 [7 a
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
2 H6 T* {5 I- pYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
P! C( i. q8 \" W) l* t2 a5 i7 o ^/ }: o, ~
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python! ~: J4 r; w. v1 }. S& z( {$ e
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32* U4 R4 d9 t% X2 d d `
Type "help", "copyright", "credits" or "license" for more information.
. o" |) G" O# v3 z, J. R>>> import flask
/ Q! x' j: T) a1 YTraceback (most recent call last):
% @) z" C2 G* F File "<stdin>", line 1, in <module>
h4 \6 ]! ~( b9 V* q1 p 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 {4 N1 R. J5 U& j# Z& L from . import json2 C) C; `; t" L7 B/ ^
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>
* W) \9 B& l; x. u0 r8 p$ e from itsdangerous import json as _json0 C2 d3 [0 r3 h1 o
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)
) R) m1 s2 H' _+ N2 G5 d. ?9 \$ t>>> flask.__version__; D, S0 d P" d; S" c& l% W7 |- G: b
Traceback (most recent call last):
5 f+ q! I6 v7 X& q% M- A, E File "<stdin>", line 1, in <module>! j, {1 J, A1 T5 E
NameError: name 'flask' is not defined2 _6 T( g/ x; z, y5 ~+ I9 Y# S! z
>>> exit()( |2 C, {0 L+ ^, S- l- }' P
4 d2 O( T4 B# A5 m
: N& d+ c$ W3 s' E再次报错,说明版本依然高:
+ ?: F, R9 O6 C. _ C降itsdangerous版本:
: l: n j' P8 w; RC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.0.0"
2 Q% `& m, ]# B2 {3 p- q% c- ICollecting itsdangerous==1.0.0
$ {+ Q e9 e, b7 M6 }6 Q 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)
) L% d0 ^1 o& r1 O& q1 UERROR: No matching distribution found for itsdangerous==1.0.0
+ I7 |5 u, _5 j+ zWARNING: You are using pip version 19.2.3, however version 24.0 is available.
$ w& @; O" E7 w+ C1 |' e2 k4 u! hYou should consider upgrading via the 'python -m pip install --upgrade pip' command., p/ K2 K+ f" l6 U% ^* q6 A
2 p! I2 v( h" s* X. KC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.1.0"" C$ i, V4 d" `0 g0 Y6 h2 [4 b
Collecting itsdangerous==1.1.0
; q a7 _3 D# I9 s! y# t Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl! M) \* N) Z" Q O8 c! O
Installing collected packages: itsdangerous
! O- [; c5 F3 L3 l. f: hSuccessfully installed itsdangerous-1.1.0
2 v; z# b5 E" d( [WARNING: You are using pip version 19.2.3, however version 24.0 is available.
! `& {) g: q0 M/ v0 tYou should consider upgrading via the 'python -m pip install --upgrade pip' command.: ^& s% y) y# I6 F |9 C
6 D9 m2 E. ]9 s% ^4 t, Q8 W
再次验证:/ O9 {1 ?* H! x
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python& u' Z! Q: O6 f9 X
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
" E. S3 ~$ }# `, v' s( a8 F: {) q4 iType "help", "copyright", "credits" or "license" for more information.
: j: ` t0 O5 t4 I- |>>> import flask
7 z9 B+ n! f2 {7 o7 _# y+ f, H1 O>>> flask.__version__. o6 ~9 {0 P- T' H! i2 P: ?$ u- I
'1.1.2'" s9 X& ?1 v2 N! b/ ^
>>>
8 q( q4 V: K* n$ o2 p' n问题解决。
- x2 O, C" l: m6 ?- {: N, [# X |
|