- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
C:\Users\admin>python
( R$ h4 E& v. ~* f: y4 _0 UPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
; [" c/ A/ {8 Z( vType "help", "copyright", "credits" or "license" for more information.% R" [7 a# t4 H
>>> import flask
/ S1 E; ]! t: z& lTraceback (most recent call last):' h3 m! j, R5 {! g) X
File "<stdin>", line 1, in <module># H( m9 }( x, E* Q, u" W
ModuleNotFoundError: No module named 'flask'
; H" Q$ U0 j9 J/ i) f+ k! o>>> exit2 a0 [* N6 ]- N- Y
Use exit() or Ctrl-Z plus Return to exit2 u$ x. d- I5 H
>>> exit()8 @/ ]: H: R* l
/ c# S( F0 K* z8 t1 F, \4 E4 d7 L
3 A0 |% V3 Q% U( K7 O0 T3 F
: t1 I; W, ^9 H O8 r" E, c* j3 [C:\Users\admin>cd C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2
2 O* |" `' D7 I1 y$ n8 z/ Q, t. I1 p z" ~8 M; a% k
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir
+ }7 g/ N0 [' @& ^ 驱动器 C 中的卷没有标签。
. o* I% V k7 e7 v- `8 ? 卷的序列号是 9825-C5127 x- z. J5 e( G4 \3 s8 O
0 M. C1 D U- i$ K2 h
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
1 X% n( R, V& V0 T; e) F5 ~% o3 p9 |9 O- i1 y4 z" u. v
2024/05/25 17:09 <DIR> .
3 R6 k" B1 @2 }2024/05/25 17:09 <DIR> ..
! U) N1 J5 n- W/ A8 s# Z7 G. D4 a* K2024/05/25 17:09 <DIR> artwork0 Q4 A# v' l* m" `3 ]6 ?# T
2020/04/04 01:03 46,173 CHANGES.rst
( F; W- b1 C/ X. S& d2020/04/03 22:25 6,624 CONTRIBUTING.rst
" R% Q% [& }* ]2024/05/25 17:09 <DIR> docs
6 @0 G3 q3 B2 T9 }* k2024/05/25 17:09 <DIR> examples: Z1 h) U( U0 x$ U
2019/11/19 10:25 1,475 LICENSE.rst
' c; [0 b; L2 f, }% F/ O" \2020/04/04 01:10 152 MANIFEST.in
: w/ @7 Z, o8 X% @5 S7 J2020/04/04 01:10 4,547 PKG-INFO/ n& Q9 g; r+ N! U: ?+ R4 P
2019/11/19 10:25 2,161 README.rst
! `8 ~+ B4 [; w# O8 d2020/04/04 01:10 480 setup.cfg
# k3 S9 U& u5 }6 U( y2020/01/11 09:20 2,799 setup.py
$ R$ \* C7 Q; k- \- a2024/05/25 17:09 <DIR> src! N. i8 ^" a2 Y7 Z
2024/05/25 17:09 <DIR> tests
8 o7 s6 C! W2 m2 }+ [2020/01/11 09:20 1,709 tox.ini
5 j5 v( K8 J7 O& `( M3 L- I 9 个文件 66,120 字节
! r- m$ n( A+ y# b' n- G9 h& K* O 7 个目录 22,689,103,872 可用字节
, D) y' W: [$ y d5 P' d0 {: B6 j1 }) V+ [
安装flask版本1.1.2版本:
8 H% z4 |: M* Y, U* wC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install
( w, t( s3 j9 ^, Y( L; D) srunning install
6 T2 K) F8 f brunning bdist_egg
" i9 o% M n! e; e: Q- c5 nrunning egg_info
( O) L5 i, C+ u# \8 s! x6 lwriting src\Flask.egg-info\PKG-INFO9 K, q, n6 n/ l5 E0 D1 \( \
writing dependency_links to src\Flask.egg-info\dependency_links.txt
% e% D; {4 Z. w8 {" w* b6 pwriting entry points to src\Flask.egg-info\entry_points.txt
2 j2 X4 F; h3 owriting requirements to src\Flask.egg-info\requires.txt' ^# I5 T# M: |3 r& \. f
writing top-level names to src\Flask.egg-info\top_level.txt
) I0 a8 g& c. W( j+ Qreading manifest file 'src\Flask.egg-info\SOURCES.txt'
3 }- H/ f* [ V8 ^# G# O' J3 _reading manifest template 'MANIFEST.in'! z r% e) K7 P, g# K
no previously-included directories found matching 'docs\_build'% E% B5 U! @6 U, J1 t: Z
warning: no previously-included files matching '*.pyc' found anywhere in distribution
. G, ~' Z* l* q7 Hwriting manifest file 'src\Flask.egg-info\SOURCES.txt'7 \; C8 T$ V* C1 Q1 C/ X- P: p, l
installing library code to build\bdist.win-amd64\egg0 A* _: ?' l! a% \9 }7 C, F0 q
running install_lib1 w. n* Z a; i3 y4 \2 R
running build_py
) g: H1 Q3 w: r: ]: Ecreating build
* R; G# [2 W6 L' {6 Q% {' Ycreating build\lib
% R6 C- t% P; `2 O W9 \creating build\lib\flask
: j/ E- ?5 o+ p( m2 M" Ycopying src\flask\app.py -> build\lib\flask% w, Z6 k! c {/ I
copying src\flask\blueprints.py -> build\lib\flask2 Y4 D8 C7 S* q: j# x) y- \
copying src\flask\cli.py -> build\lib\flask/ P) }5 F2 X6 {* K) n
copying src\flask\config.py -> build\lib\flask
. a5 E) c; H" Ncopying src\flask\ctx.py -> build\lib\flask: a$ _. E+ F9 \1 Q- |# C
copying src\flask\debughelpers.py -> build\lib\flask
v* T, T/ U, Scopying src\flask\globals.py -> build\lib\flask7 n0 t/ L. a% i' g, S
copying src\flask\helpers.py -> build\lib\flask% k9 E+ y W5 O$ ^- y! U2 y/ x
copying src\flask\logging.py -> build\lib\flask
1 T! T8 p# s8 y* h1 ~, x5 pcopying src\flask\sessions.py -> build\lib\flask
# M) q1 F6 W# @copying src\flask\signals.py -> build\lib\flask
& Y+ T& d7 n/ T! j4 B6 D/ Icopying src\flask\templating.py -> build\lib\flask; Y: H+ {! ^5 D; y0 B' o/ |& y
copying src\flask\testing.py -> build\lib\flask
1 P" [. g) D# qcopying src\flask\views.py -> build\lib\flask
' |% Q5 T+ Q' w$ `" K; U. Icopying src\flask\wrappers.py -> build\lib\flask8 r# {) o2 ]- r
copying src\flask\_compat.py -> build\lib\flask1 Q. U) q5 u5 @ c3 }6 k
copying src\flask\__init__.py -> build\lib\flask2 r. V; z- I7 s# s, ?! w. d( X
copying src\flask\__main__.py -> build\lib\flask3 e& K% o, ]0 }* F& R6 }/ v
creating build\lib\flask\json- M _0 W/ b0 U# T% y; x
copying src\flask\json\tag.py -> build\lib\flask\json0 [6 ]. w- [- _( }1 v" L; B
copying src\flask\json\__init__.py -> build\lib\flask\json, S3 z$ s& O6 s3 e3 d
creating build\bdist.win-amd64
% b- }! l$ ]3 Y ?4 H% }# G2 V: Bcreating build\bdist.win-amd64\egg; g5 h3 [' R2 `, _6 W: C1 G( h
creating build\bdist.win-amd64\egg\flask
3 M& }; q" e; ~' q: h# i+ G, Mcopying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
8 V k2 x( T# T! p$ N4 d* Kcopying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask3 p) n9 }3 B- l
copying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask
* ?& r& n: ]4 D' m; f$ j. vcopying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask& z" Z: O" ?& O; E, d2 [
copying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask
) k7 s* z& S# `( @' y4 Wcopying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask) J+ d: h' {1 c9 ?' Q
copying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask) [6 c0 ^( ^" F+ b! s
copying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask. ?- b$ K2 T( l" b4 z6 _& B, E
creating build\bdist.win-amd64\egg\flask\json$ u6 D, t7 I' G. g- D
copying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json
~8 b& p; S" S' }6 N! P1 ]copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
; w/ N, f) p+ s- T( k/ a& |! {copying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask3 W; G' g$ U. w- I- }# r- A3 a
copying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask
3 R# u; P. i4 ^- o! G5 ^" R' Z+ Xcopying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask
9 n: v4 R4 |5 t) M( o) t0 ?+ Rcopying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask5 S. v& o- P- h+ ~3 W# s
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
: q& @ s- b1 |8 E, f0 [- Wcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask
6 @, h$ s! s+ V( b" P+ @copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
' Z6 n: D; G7 j) C3 ~/ ccopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask# u; C, N" C* F+ Q6 O& ?/ R
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask
0 z2 v4 h/ ]7 rcopying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask3 H" L8 I! W% G& @5 G2 t2 {
byte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc n5 w& X- r2 q/ C q8 N, W# r6 v
byte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc7 }. S6 y( g" Z' t
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc, b: F9 O+ o4 f, s4 X% p# c
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc( L2 Z- @7 W0 Q. C0 O
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc! Q0 ?' b* j& Y* b3 d
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
; m, r% U8 j8 L% \6 L* S! O5 m( qbyte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc% D# X E/ ]4 h% _# ?
byte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc* _- z/ f% S% s8 P2 l7 T- V
byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc4 Q& y8 T: @' N" \# h# L
byte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc
L& d2 r. n" P0 Kbyte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc, A# x) N3 p# x e, q" F, `' g
byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc- g* i' ~- c( o% j( n# k8 d
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc9 b% p" v; W0 B2 d. Y% S2 N5 o J# i
byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc$ P1 y- u6 H' ], m! L
byte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc- E" M8 ^5 G( N Z
byte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc; `& L4 I) \! W- ^
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc( X2 m1 f% X/ H7 e) ]+ @ ]; J
byte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc+ [7 k( X- \/ p, ~$ p
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc/ Z( r) g+ r6 E6 |* P; @( j
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc+ ]1 f {; X2 c6 s9 [
creating build\bdist.win-amd64\egg\EGG-INFO( A0 k& _. S6 N+ \3 H
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
. q' ~- b: p* c/ K# }copying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
; K+ _) y9 N/ t9 g# K1 Wcopying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO- L) F* T2 m& D9 f4 I# d2 f) ]
copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO+ n: _8 h: J$ q8 K- k) Q9 _7 O& `
copying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
7 T) q! D- d Z; z9 C# v3 T# ^copying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
) [$ b- U* h7 a! O" p s# Izip_safe flag not set; analyzing archive contents...4 `8 w# W, w6 I- }/ _4 T. ]- `
flask.__pycache__.app.cpython-38: module references __file__) _3 |4 K8 E0 A3 b: I) ]! ]
flask.__pycache__.config.cpython-38: module references __file__4 A2 u9 e- ?" ` i8 q2 i5 Q- a8 u
flask.__pycache__.helpers.cpython-38: module references __file__) C$ ^, n2 K+ ~3 V
creating dist
( q% B; j( E- m! ecreating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it! T' @7 C( P) O8 R: ^
removing 'build\bdist.win-amd64\egg' (and everything under it)0 C3 R' i/ i9 ?- q: {
Processing Flask-1.1.2-py3.8.egg
$ d# u9 I. k( ^( _3 G2 ~creating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg
8 R( d( E6 n" m, E. S$ HExtracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages8 p+ m4 i) j1 A* g
Adding Flask 1.1.2 to easy-install.pth file6 i: y- `: ^/ g2 `9 _
Installing flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts% f' H6 v. ~0 j6 F4 E9 A/ m$ y- x
Installing flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts6 X' t, x, F9 e
+ D* p5 i4 y: u8 R' WInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg# Z" ]8 ?! [ w& ~/ r
Processing dependencies for Flask==1.1.2
$ o; h6 F y+ R, _5 E5 zSearching for click>=5.1- v/ t* U9 T2 J4 U0 l
Reading https://pypi.org/simple/click/" n6 k" e' a! v1 W0 _* ]
Downloading https://files.pythonhosted.org/p ... 9a7931d1582f3390c28
' K! q5 ]3 c9 aBest match: click 8.1.7" Q0 J1 P: y0 e& m! t' Y7 p9 M
Processing click-8.1.7-py3-none-any.whl
V! C7 F; I9 N# Q: w W F+ @9 LInstalling click-8.1.7-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages. L/ e. a( U/ a9 r, H) }
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+ [8 D9 z0 c1 L, n
Adding click 8.1.7 to easy-install.pth file- j3 k2 y/ C- s4 f& {3 q3 B6 u* p
; B4 g' V, p8 h- u3 m" _
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
9 E7 n. X* ~* Y$ J1 V6 H) YSearching for itsdangerous>=0.24
, G3 E5 o4 z" J. aReading https://pypi.org/simple/itsdangerous/
9 w2 A& w, X0 tDownloading https://files.pythonhosted.org/p ... db01a3f5891b98700ef
$ q2 p7 j" a6 f9 eBest match: itsdangerous 2.2.0! S: d; ^) C- S( p8 d. E+ c- B3 b
Processing itsdangerous-2.2.0-py3-none-any.whl' C# z$ r1 |& P5 p/ A. ~' F
Installing itsdangerous-2.2.0-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages. r# t M3 x! ]
Adding itsdangerous 2.2.0 to easy-install.pth file" E5 O$ J* Q, D( P( d+ M
+ e8 @7 I% \- [2 _& {, F, o; hInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg3 d, X0 t. q$ m% l6 x' `& Q
Searching for Jinja2>=2.10.1
0 ?& X1 j0 B& w* P4 U% YReading https://pypi.org/simple/Jinja2/$ ^1 W( p! Z. e Z, H2 R9 \2 }
Downloading https://files.pythonhosted.org/p ... fe6c89c6f9c7d25197d
7 z1 l7 }9 F# p1 b/ HBest match: jinja2 3.1.4 p6 ]& Z1 e0 V2 l& I
Processing jinja2-3.1.4-py3-none-any.whl
# w6 x# _6 s5 {' x/ Y) xInstalling jinja2-3.1.4-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
6 c4 ~* l7 L! k& R r& }9 twriting requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg\EGG-INFO\requires.txt$ {6 w! [1 q- r% J' T& k
Adding jinja2 3.1.4 to easy-install.pth file
{: O: V1 c! J0 q
& i4 E, E# x2 j# c, CInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg
2 s+ r$ O" j! T, _Searching for Werkzeug>=0.150 c! L; v) U* e# ?
Reading https://pypi.org/simple/Werkzeug/1 P! i% W7 e) j# L1 |
Downloading https://files.pythonhosted.org/p ... 535fdfe155a17cc48c8
5 U% p9 j! O- s$ B. B" rBest match: werkzeug 3.0.3( b+ l% s; R% f i( Z9 k
Processing werkzeug-3.0.3-py3-none-any.whl
: B( f, G) M5 i6 w: n* jInstalling werkzeug-3.0.3-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
F8 e+ G9 e m6 x0 d0 Jwriting requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg\EGG-INFO\requires.txt
2 A+ G4 Q9 ?0 P, O0 uAdding werkzeug 3.0.3 to easy-install.pth file4 A" }3 l$ F) H( ?+ y' S6 w6 @
$ {0 \5 c! v9 \: M: b- x1 P$ C
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg+ G3 u, {6 E# O. m, P2 b$ K
Searching for colorama
X9 ^& D7 i/ D. n1 s$ n5 TReading https://pypi.org/simple/colorama/
* O9 t, L5 {% ^/ q5 jDownloading https://files.pythonhosted.org/p ... 11c16baf57afb285fc6; r2 h* P) S/ J3 A. l! s& I
Best match: colorama 0.4.6
: r" o/ l8 A$ [, IProcessing colorama-0.4.6-py2.py3-none-any.whl
4 z' T3 ^( ~+ x6 w. S) JInstalling colorama-0.4.6-py2.py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
, c3 p+ ^" B7 z. k* U1 ~% ?Adding colorama 0.4.6 to easy-install.pth file! j! c8 N# z2 Y- V; p% d
6 H' J) a6 Y: U5 ?! UInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg
! E8 T; V3 e; C% X. cSearching for MarkupSafe>=2.00 ~" o2 ~7 k4 d7 ?
Reading https://pypi.org/simple/MarkupSafe/
7 P& y1 [ ^4 A, yDownloading https://files.pythonhosted.org/p ... b63c00bd1a709c6544b1 S. K( o6 {" r/ }
Best match: MarkupSafe 2.1.5
- [2 U0 B9 ~4 K$ ^Processing MarkupSafe-2.1.5.tar.gz
/ k8 U0 A ]& b7 u/ ~Writing C:\Users\admin\AppData\Local\Temp\easy_install-am4pt4f4\MarkupSafe-2.1.5\setup.cfg
4 d/ C# H8 [- r) YRunning 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
: z* T9 o$ E% p6 X- l4 ~5 Cno previously-included directories found matching 'docs\_build'
, J9 R* X. P( @8 W& U" s! {warning: no previously-included files matching '*.pyc' found anywhere in distribution D d/ ^- y6 X0 [' W
==========================================================================
$ p% ~5 F4 R. N0 T- DWARNING: The C extension could not be compiled, speedups are not enabled.
3 A" G2 _1 ^! L4 z6 pFailure information, if any, is above.* U& L2 l; R2 R# ?( ^
Retrying the build without the C extension now.
, a. ^' U7 z; Q# s==========================================================================
& U3 @6 f1 x) A L& Q/ t+ c, q) ^no previously-included directories found matching 'docs\_build'2 Z% u# {, @2 `9 K7 K
warning: no previously-included files matching '*.pyc' found anywhere in distribution$ w' {+ P, ~- _/ {8 E. C4 y: r* ~
zip_safe flag not set; analyzing archive contents...
! T r& b" o' O==========================================================================
$ W# A- L( s7 D% q! R9 m/ W$ ]- cWARNING: The C extension could not be compiled, speedups are not enabled.
6 g- D1 d3 Z( f$ H5 A2 G' A4 j# yPlain-Python build succeeded.
) Y% @- J( ]3 @5 T3 Q==========================================================================
, y, I( }. i8 O) KCopying markupsafe-2.1.5-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages2 N& E7 H7 \6 \5 W3 {1 {! X' n
Adding markupsafe 2.1.5 to easy-install.pth file }9 U/ }( |# J& @) x( z
: |* c$ ]. {4 ?0 G' e7 b' s [3 ]
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg7 [& e; a9 H2 c: l' K# b
Finished processing dependencies for Flask==1.1.2' n* t# y+ p8 d. m6 [1 z) g- z( G
1 k9 X9 V3 _7 W7 _/ C: @% l
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python' [! ]1 S- H( t2 c/ v" p
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32# [: @$ a9 r- T
Type "help", "copyright", "credits" or "license" for more information., d# X6 S6 e5 |4 X7 P" S
>>> import flask& h: C0 g; H! p, h
Traceback (most recent call last):
2 k% P$ S- E" F: J File "<stdin>", line 1, in <module>8 B/ f6 q9 ^! e* M
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>
7 B5 T# x7 J1 s8 O from jinja2 import escape' k5 p; I- Z0 `7 ]2 p
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)
. m2 i: A( V8 V- V5 t9 [1 J* S/ N1 w& I6 k( \( l% H
% o& a* ^5 g- Z, y) Z2 Y
引入报错:* Q0 |, j J/ S* T, T9 S
解决pip 组件版本:
* O3 g& _2 [( X: i) ]; E- X" y
/ _% p, L. j6 s8 ?5 W* u
, ]/ d1 \! L( d: jC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
1 m3 S+ u" u7 t: J' v! ^( v. b4 T, `Package Version3 C3 w, T3 E: p% @
------------ -------
( O5 k$ D; _0 }click 8.1.73 h/ R6 w' ^' z* _7 ]
colorama 0.4.6
3 e- ^. p$ w0 R* Y/ X* Pflask 1.1.2
" q, Z/ \) B2 a: i5 D; Q& s! W- uitsdangerous 2.2.0' W8 h! B6 ~! ]
jinja2 3.1.4
: I' q& i& K4 J# A' Omarkupsafe 2.1.5% ^; M$ W5 J" V
pip 19.2.3( z5 s0 F7 Q8 c+ g7 l
setuptools 41.2.01 o" z" F0 |1 h9 n7 C
werkzeug 3.0.3
/ D6 \0 x7 P8 k" ?5 D+ S) d" fWARNING: You are using pip version 19.2.3, however version 24.0 is available.
$ ~/ O9 L; G* e0 G# N8 b# f$ TYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
' ?. p/ P- B- A
2 X/ X: y/ g9 f) n& L5 ?' ~7 wC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "jinja2==2.11.2"8 h! r/ j% D; [* ~6 F
Collecting jinja2==2.11.2+ A, i3 W- \: y! X& p! |8 u# _
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl (125kB)& X' L, T# v* P# F) [) C! d
|████████████████████████████████| 133kB 652kB/s3 }9 p$ d2 b$ O8 ]
Collecting MarkupSafe>=0.23 (from jinja2==2.11.2)
, f" _( y7 w/ ~. z! \ Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
F# W( f0 @1 ^4 `) Q0 OInstalling collected packages: MarkupSafe, jinja2& _: o& ?( m" r% Y4 m e
Successfully installed MarkupSafe-2.1.5 jinja2-2.11.26 Z5 P6 L" ^; y0 i
WARNING: You are using pip version 19.2.3, however version 24.0 is available.5 O6 W% B& y4 F+ B
You should consider upgrading via the 'python -m pip install --upgrade pip' command.8 y- Y9 h# a" ]; i, O
! r+ `' S2 ^' a2 p8 S3 v H8 H
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
. Z$ s1 A4 w/ [Package Version
! C9 w2 _6 J0 g# p. x+ y% H" `& b4 l------------ -------. y$ c5 ^1 C, M& r( y3 f# Z0 P1 \$ s& B
click 8.1.7: L# W1 c# P1 b9 R3 E
colorama 0.4.61 {' b4 A' X: W0 l2 J/ {9 v# R& u
flask 1.1.22 ]* t' E* Y, G( K+ A, Z/ i1 Z
itsdangerous 2.2.0
3 f/ T2 ^/ r: O; z4 m, C0 ZJinja2 2.11.25 j: A$ L" F0 M5 W6 {- f* L) o2 F
MarkupSafe 2.1.5! F. R* L H6 `3 ~1 G! }3 z) P
pip 19.2.3
) R, h) L: j1 e. Ysetuptools 41.2.0& Y2 L; f/ U+ k0 U: N) Y- J. {
werkzeug 3.0.3
( f0 Q" s" f3 y' tWARNING: You are using pip version 19.2.3, however version 24.0 is available.' d6 |" l: i# ]+ i% O2 V
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
8 u0 l5 x% W8 P Z4 @: W, o# K4 ]" ?$ @6 Q8 V
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>ls
1 O% `# j5 \* x! x A'ls' 不是内部或外部命令,也不是可运行的程序: s0 h9 P' W2 v) x+ O
或批处理文件。+ E/ b7 c0 I. R
2 Z1 z0 R5 J S8 k# ^# Y5 r
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir
+ r% I+ f- _ a 驱动器 C 中的卷没有标签。
. ^, }6 Q, m6 _: [/ w/ o0 s" q 卷的序列号是 9825-C512, ^" B8 Q0 }6 k
9 \) h# w J7 ~) j. t; l( V7 }1 M) o
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
- k) J, a4 u" j: n/ }# q4 k/ l, R/ z* g3 c) D& E3 K; ]4 Z" j
2024/05/25 17:10 <DIR> .
; A) P: s7 G+ {, Z- ?% {2024/05/25 17:10 <DIR> ..0 ^9 N6 b# H, {0 \, |
2024/05/25 17:09 <DIR> artwork
7 o6 Y) t5 u2 v# h" W9 }% V6 _2024/05/25 17:10 <DIR> build- c5 I) I2 Q L
2020/04/04 01:03 46,173 CHANGES.rst
9 w* e' W; L! B5 z) w2020/04/03 22:25 6,624 CONTRIBUTING.rst
4 v5 l5 o9 j! x+ _6 z! z2024/05/25 17:10 <DIR> dist
Q! T% V1 _; a$ X2024/05/25 17:09 <DIR> docs
" v1 }) g% W% U- @6 }2024/05/25 17:09 <DIR> examples9 E* ]) c/ |2 Q! i
2019/11/19 10:25 1,475 LICENSE.rst
) O6 X: b+ c( P7 u2020/04/04 01:10 152 MANIFEST.in/ [3 f8 c7 p, {" O( a {/ N
2020/04/04 01:10 4,547 PKG-INFO1 u& j% a3 |- e
2019/11/19 10:25 2,161 README.rst
/ {0 k/ x. j ]+ g: C$ w; e2020/04/04 01:10 480 setup.cfg
3 ], P7 c: G8 b2020/01/11 09:20 2,799 setup.py4 K& t' @- E! |
2024/05/25 17:09 <DIR> src- v) T! N; }: c0 [) j
2024/05/25 17:09 <DIR> tests& i- ~/ w8 y/ q! T3 C
2020/01/11 09:20 1,709 tox.ini
0 k; l, c6 j L6 j1 p 9 个文件 66,120 字节4 X7 ?$ N( _% n& I ?( V
9 个目录 22,681,739,264 可用字节% q0 s, Q: {0 w! K% H
/ B' J$ Z$ s O B
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install8 w! M' m" A. A( z
running install
! H# K( M0 n- [' O& g8 W( arunning bdist_egg4 P4 H( G1 v8 J1 r
running egg_info
" X2 q' W+ o8 d4 ]1 {writing src\Flask.egg-info\PKG-INFO
: v3 [- H2 B7 u" r& i5 vwriting dependency_links to src\Flask.egg-info\dependency_links.txt
/ _1 j8 T: P* q& cwriting entry points to src\Flask.egg-info\entry_points.txt% T, i4 `5 L" _2 O" q0 t
writing requirements to src\Flask.egg-info\requires.txt
$ k6 }5 ?$ `3 I7 a/ z% _+ \. a3 d2 `0 ^writing top-level names to src\Flask.egg-info\top_level.txt: g2 @8 [* y8 I0 r
reading manifest file 'src\Flask.egg-info\SOURCES.txt'6 l# Y3 c: x9 V* a2 S1 s# z
reading manifest template 'MANIFEST.in'
; f# E% w4 M ?8 p2 K. Sno previously-included directories found matching 'docs\_build'% p# q. h2 A: ~4 l& ]% i7 ^
warning: no previously-included files matching '*.pyc' found anywhere in distribution
0 t6 ~; x- H6 K8 f3 _, ?& Cwriting manifest file 'src\Flask.egg-info\SOURCES.txt'
+ A! l0 E# _" binstalling library code to build\bdist.win-amd64\egg
& G% M3 {8 e. \running install_lib, w A2 s1 U7 O$ S) c8 h$ @# q
running build_py& f; N" b6 j: W( Q
creating build\bdist.win-amd64\egg
+ b# |9 b! y1 [) o& i5 A+ Ucreating build\bdist.win-amd64\egg\flask) L% [ \) b3 p6 w+ h
copying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
( |5 k y8 s& u5 T; y! U" R6 \copying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask
7 D! J8 ?5 k# f- r* k k, Ocopying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask% ?! F3 u2 @( B O8 c) @
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask
$ z$ C* {, Y8 h$ qcopying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask) B3 a$ l' @& D4 w) u. ~) l
copying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask0 P& J. i7 n3 o" U1 M
copying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask
% l, g. c+ A, r& lcopying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask
6 X4 v( L3 A0 Vcreating build\bdist.win-amd64\egg\flask\json& w2 U, z4 ]: ^0 s: m
copying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json
! }' }) g n( G4 y! {, p) m# W Ncopying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
% S, g7 b) g/ ~$ W! n% Fcopying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask
8 o7 H+ |; A; o8 T1 \' Vcopying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask7 @, y- Y H3 m1 d$ m
copying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask7 Y# t5 L1 z. s" J& z; U
copying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask
' m! b! G$ w! z0 w# H7 `copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
6 Y" @. G: g7 k" k0 zcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask6 p$ i1 z/ R4 A% W6 V' C
copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask6 }2 }$ l7 E' V0 W# H
copying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask3 S0 z8 m$ J$ G1 P D3 t# C+ _
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask5 r* S! I" U& \' g
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
G: }4 D! H$ i X. C* I- bbyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc
! Y9 U5 q9 W) t7 H2 s0 w7 A, F& ibyte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc; k) V1 L; x9 G. a0 G8 g; B! l
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc. T& o4 k- _6 S j' F2 \8 c& R. s
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc& T' F& }: e& {0 O! ^) c9 i
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc! j q( a; f, m' V. J
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
3 R8 l7 X! `) V, ?- v; e/ H, f; [byte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc
6 s7 W$ t+ ^0 T [9 s9 Wbyte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc
# Y4 x' {: X4 X/ V5 Xbyte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
5 ^6 \+ b2 H4 H& _! rbyte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc5 M3 w% S6 A. l
byte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc
# H3 }# Q4 p7 r1 c# ~" `byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc) c. i# h; U0 h- J6 i1 l
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc; O1 B a" d( G* ]* G7 g
byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc
7 `0 N5 q0 C; p2 ebyte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
6 t* @0 X6 F* [1 o$ @" N2 z! fbyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc
( p3 U; A2 d9 G& R5 Cbyte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc
9 ]' ?4 w5 i, P6 cbyte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc/ ]3 x/ ^; K0 T7 }+ R# o8 h5 F
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc; G6 {# ~$ l- n: h- K' `/ R# o4 v
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc# I% H/ ~) o8 D5 |% y- F5 Y* E' T
creating build\bdist.win-amd64\egg\EGG-INFO; {1 g) o9 B- M% e+ H- S" a( D0 I
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
4 m- `$ P2 m- b: \copying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO- K K7 ~. U {8 b8 F3 ^
copying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO- L4 x. I' f3 j" b; L
copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
% k6 _0 w6 t" i& Hcopying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
! [! |6 g4 C: _, e9 Q$ ~9 Lcopying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
& B1 A8 w& q* i6 ^' Nzip_safe flag not set; analyzing archive contents...8 d% R' i' g6 ^: @" A, R6 r+ W
flask.__pycache__.app.cpython-38: module references __file__ J9 x! Q7 W& j# D
flask.__pycache__.config.cpython-38: module references __file__
- c6 P1 V y# ?4 \flask.__pycache__.helpers.cpython-38: module references __file__8 s# x" j( a) g& I+ }2 h- K. P" j, R4 O
creating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it
# E! k# e! a; U8 {. S: I& Premoving 'build\bdist.win-amd64\egg' (and everything under it)
+ Z- I$ n7 X+ G" g: xProcessing Flask-1.1.2-py3.8.egg4 G G. A& |! n/ J6 y0 R/ @+ J1 F4 W
removing 'c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg' (and everything under it)
0 \- }6 r/ r& acreating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg
2 R5 I! `4 @( f3 f) FExtracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages& l b& K, Q# D# n! z
Flask 1.1.2 is already the active version in easy-install.pth
& ^- l g4 }) Y% {; ? }) U0 JInstalling flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts$ R' }9 Y# v5 _7 ]3 B
Installing flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
* w4 V; o5 ?& o" g" ~7 P9 N7 c' o$ }; E: v
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg
% D4 n* `2 c6 ^, A4 p \Processing dependencies for Flask==1.1.2 ]9 k1 M7 S+ m& R+ O U) X1 L) _. s* t O
Searching for click==8.1.7
+ `+ n: X5 L0 IBest match: click 8.1.7
# Q; B- u& [ G* e" pProcessing click-8.1.7-py3.8.egg
3 {+ \* b N! U; v* lclick 8.1.7 is already the active version in easy-install.pth
' _: ^- x; Z) {) r# Y" {/ g& h8 y9 M9 b1 W4 Q; z& p" Z
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg6 s; K8 G; i0 Q' J" ^' `
Searching for itsdangerous==2.2.0; ]! A+ i' P9 a3 E) _
Best match: itsdangerous 2.2.0
! ~( _* u9 ]7 ^Processing itsdangerous-2.2.0-py3.8.egg
4 W1 L7 [4 V! X+ hitsdangerous 2.2.0 is already the active version in easy-install.pth
" ^/ e% v# W& N6 w6 n0 W: y) b; t. V& H" k* P/ H
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg
& p/ ?8 o: {: |* p. ~0 O7 cSearching for jinja2==3.1.4
7 i7 y# u* T5 z9 JBest match: jinja2 3.1.4- Y: O0 K+ G1 g7 g$ Q7 M
Processing jinja2-3.1.4-py3.8.egg& w& u5 ] M0 P" P0 \
jinja2 3.1.4 is already the active version in easy-install.pth8 O$ J1 `" v0 h7 q% Q9 S, U
; u1 `* M6 @2 y: j, fUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg6 e p, B' L9 E9 x: t% s
Searching for werkzeug==3.0.3* o5 Q- {$ n2 c% k) ?
Best match: werkzeug 3.0.3
0 j* [2 H7 t% [* s* {Processing werkzeug-3.0.3-py3.8.egg
; }7 v7 S4 u, U5 Bwerkzeug 3.0.3 is already the active version in easy-install.pth- i9 {( m3 B+ U
+ ]$ @3 a$ s( ?9 A
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg
- b: H) B7 y, T+ s0 r$ rSearching for colorama==0.4.6
" Q7 j, E, a6 ABest match: colorama 0.4.6
8 h7 @1 C& L8 D/ p6 xProcessing colorama-0.4.6-py3.8.egg
- T3 Q0 z; o) ~colorama 0.4.6 is already the active version in easy-install.pth
7 X: Z. W4 Y$ |% P; V: L3 c' k' Q* T0 Q g7 j( H: }
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg" K6 l3 A! V C
Searching for markupsafe==2.1.5
( D2 P! F$ ^7 b3 fBest match: markupsafe 2.1.5
* n7 t6 P' e" v; _Processing markupsafe-2.1.5-py3.8.egg
( n. H Z6 t+ _2 x; omarkupsafe 2.1.5 is already the active version in easy-install.pth* @# Q! H# J5 Z: J
4 S/ _5 ` l. d7 f0 R4 J2 q3 R9 |Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg) _5 S0 P/ q) m1 k+ E* s+ |
Finished processing dependencies for Flask==1.1.2. N) h9 n. D& E7 B6 X, V
! c- S: K% p8 Y) K' D0 t- LC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list [; |, q7 T9 x& r% r
Package Version
4 {' c, p$ J0 G0 q9 O2 I$ |------------ -------/ m, d3 j. h7 C" Q
click 8.1.7
8 ~9 _) }$ o5 t! Lcolorama 0.4.60 C3 w6 U/ q. I
flask 1.1.2
9 A5 K3 d4 Y; N! m& citsdangerous 2.2.0
1 L7 ^# _- z( C: MJinja2 2.11.24 g8 B4 k: M1 F% ?0 k- y% g
MarkupSafe 2.1.5 n2 F/ @3 r- H
pip 19.2.3
# M: A7 u4 Q' S+ q9 _: {+ y% ?setuptools 41.2.09 l) |2 R) {- c! W' A
werkzeug 3.0.3
9 r4 e8 N8 c. W( |WARNING: You are using pip version 19.2.3, however version 24.0 is available.3 x# w. u* n$ k+ G" c8 h
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
- `& r/ d4 ^# V1 p
3 O; p8 ]1 r5 E. d% \C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python
. ] l. X+ B' ?: ePython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win325 Q6 w& N- F; A- x1 L
Type "help", "copyright", "credits" or "license" for more information.9 ]3 x) B) a# Q* N0 l
>>> import flask% Z. o- K" J4 j3 n) H2 z# a
Traceback (most recent call last):6 ^, H+ u7 {' e+ r4 d. A5 F2 O
File "<stdin>", line 1, in <module>
5 Y. M o# K: k6 S: f) g 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>
+ M' M* J$ q! Y4 o( d# r! ?" i' Z from jinja2 import escape; W% L/ I" \7 n2 d
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\__init__.py", line 12, in <module> @# S- c. t4 b3 P8 F" I, K% u8 }, C
from .environment import Environment5 @+ p% u O9 F
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 25, in <module>2 g, q" ~ G7 a" J0 U
from .defaults import BLOCK_END_STRING- }+ _: V% Q- k+ c$ v6 v7 C
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\defaults.py", line 3, in <module>% g/ E+ R8 ]2 k% S; K9 y5 r
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F4010 r3 t$ }1 P( a8 Z, U
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\filters.py", line 13, in <module>% n# H5 }9 e9 ~. @+ Q6 Q0 ?& x. M# u
from markupsafe import soft_unicode) |+ h. C4 L$ V$ O. A
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\markupsafe\__init__.py)
4 b E$ L' m2 k/ A2 ~; z>>>, L, j3 c) ?$ h5 T
>>>
3 ~) \. {' M! u6 v1 Y/ |5 r" F- m>>>& y7 g W& D |/ D/ w$ T& W
>>> exit()6 t/ h# {: g1 Q" N) r
( O5 y* Z: b$ k/ w3 m
还是报错,版本太高,将版本。( l( t3 y+ _2 I+ J
^# ^, ~, E' Q. HC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
- q- H: F j. P3 gPackage Version( `+ x5 `( f4 R. k
------------ -------" r! R/ `5 X' T# g5 q2 e
click 8.1.7% x' d/ A1 ]. w& g5 v9 q; q
colorama 0.4.6
1 A7 h! s, Z0 ?3 F! u) Uflask 1.1.2
( O! _& V. T# x% a$ Hitsdangerous 2.2.0
8 Y1 Y# f- R6 m9 Z0 r% p) ]- `. RJinja2 2.11.2/ `8 K( l( l! Q
MarkupSafe 2.1.5
1 s; H$ w8 g( j& a3 bpip 19.2.3
5 u, V" \. G$ w: Lsetuptools 41.2.0
$ W+ A5 l* q3 q8 i+ c* M5 ywerkzeug 3.0.3
# w4 m: U2 m, i0 {0 R1 ]$ w3 m i3 \WARNING: You are using pip version 19.2.3, however version 24.0 is available.
+ b8 F" n# M4 | iYou should consider upgrading via the 'python -m pip install --upgrade pip' command.. w7 Y/ h7 v6 H4 h, x- p+ ~, l
5 p) r/ L U) e7 ~+ n2 h, QC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"% m6 b) t( ^5 N( t4 i
Collecting MarkupSafe==1.1.1
. _9 n. v, Q- _' { Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
4 s9 \. T# I! J6 i4 V& {8 xERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.1 G$ c( R2 i& L2 k Z5 g5 w7 V
Installing collected packages: MarkupSafe
: A1 p6 a E8 i0 H* vSuccessfully installed MarkupSafe-2.1.5! `$ s4 S+ Z3 O* F4 y0 j
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
1 A- {. ]7 i7 a% v; p. ~- j9 cYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
( K# |* B" ]. ^ w5 @$ _; b3 |" {! [% }/ x. s/ F2 T2 F7 T1 |
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1" 2 e0 [% g/ [8 i/ J# O" U& K
Collecting MarkupSafe==1.1.1
( U; K( Q& U) }0 A1 L) W Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl/ W8 _. c: W* ], _6 T( ?
ERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
5 s! c1 a" f/ J' AInstalling collected packages: MarkupSafe
# p2 z# } Q4 F/ RSuccessfully installed MarkupSafe-2.1.5( I% g* { ^+ c$ D: j! [
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
$ H i& F5 {. E+ m/ YYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
7 T) e% x4 M$ T, j1 s* N
0 z8 F+ ^2 }3 s) U* l6 i3 }9 _& [; k0 NC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "werkzeug==2.0.0"
8 c" Y, ?! F% d' c: }Collecting werkzeug==2.0.0
- o: m* o' t5 k x9 H/ D1 T Downloading https://files.pythonhosted.org/p ... .0-py3-none-any.whl (288kB)" @7 W6 a F$ |% P& c; E
|████████████████████████████████| 296kB 656kB/s* y1 g, C2 @( d6 `) ~5 D' w0 W. [
Installing collected packages: werkzeug V5 K- Z7 ^8 G/ f
Successfully installed werkzeug-2.0.00 g$ o" W3 @1 D- m
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
: r) g* j v4 R( p9 yYou should consider upgrading via the 'python -m pip install --upgrade pip' command.( b# S! \2 N3 L, [7 q
1 _6 [9 B6 O f9 c: V* d8 |
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"5 k) b! h* Z! u0 p( @5 w. M! \
Collecting MarkupSafe==1.1.1
: w. {9 e* b3 ^7 b; O% Z Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
n$ V3 A1 X) s0 a: c1 x# bInstalling collected packages: MarkupSafe, n& ~9 B3 m5 F2 E* n/ w
Successfully installed MarkupSafe-2.1.5, W$ Y7 u r& O* y, d
WARNING: You are using pip version 19.2.3, however version 24.0 is available.5 F( V0 D+ t2 E4 F/ u0 ~+ o
You should consider upgrading via the 'python -m pip install --upgrade pip' command., \! d( B( J% q
' N D/ b/ M |1 n/ F/ N% K
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
0 ~% y% ]# U. ]# O& e dPackage Version
3 e8 |% ]1 p8 c------------ -------
. r% ^ A4 F# \' K; Jclick 8.1.7
: [+ w$ ^: R/ s; d0 g7 x$ Y" zcolorama 0.4.6+ P# J& L) H! ^( k5 i* X
flask 1.1.20 i- s9 ` Y$ E2 L' q4 |2 u
itsdangerous 2.2.0/ p4 L4 ^, O7 u) `. \
Jinja2 2.11.2
7 ]+ Z% D. c# u$ E8 ?: W( }MarkupSafe 2.1.5& K' P! F5 t$ H9 v1 w* \" ^/ z4 P
pip 19.2.35 d+ @+ m0 l7 m' E# s. V
setuptools 41.2.07 b B9 i0 V7 _: Q
Werkzeug 2.0.0
2 S% y i! B: B: TWARNING: You are using pip version 19.2.3, however version 24.0 is available.
# Z& [) f3 G pYou should consider upgrading via the 'python -m pip install --upgrade pip' command., }8 n# c- ~9 K' p8 s. W- M
* d+ }7 \# d! V, o' g# p; U, m: u
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python" y1 V4 F* 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- q: g: g, V8 q; X
Type "help", "copyright", "credits" or "license" for more information.2 c. B+ |0 U% n! r& C' u2 e
>>> import flask
8 Q) R7 B& N' z7 {& @7 KTraceback (most recent call last):) \! o% L/ S; g+ K2 R# w
File "<stdin>", line 1, in <module>
; ^- I0 p6 p, m0 `- t. E) ~ 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>
( j5 r7 @8 A) g$ T9 H from . import json
% v5 N9 A7 x# z 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>
/ J: o3 j6 Y2 e% ]8 P from itsdangerous import json as _json) \: Y9 f" o4 I1 W
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)
8 O( q5 z4 m' q>>> flask.__version__
+ M" Y$ i- I* o, g" aTraceback (most recent call last):
3 U% E' `* F5 _1 ]5 G" a File "<stdin>", line 1, in <module>
. n- H; `0 u9 _ S" q- {. ]NameError: name 'flask' is not defined; X4 ^9 Q4 h1 o- `( D( u' r
>>> exit()# S9 p y4 m" k v1 F( a# f8 Q
7 W( n5 I+ }4 Z
" P% E& w) G' E& S6 Q- R' z
再次报错,说明版本依然高:
; V* y- z k0 O" W1 Z0 U降itsdangerous版本: P" ]$ \* ^7 H3 t
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.0.0"$ L# Y3 e; \, D1 t/ n! D
Collecting itsdangerous==1.0.0
5 i G' _6 n% A2 {$ }/ |9 @4 r 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)$ J" z @1 B' i8 d+ K
ERROR: No matching distribution found for itsdangerous==1.0.0! T! }1 O: m% F& Z x
WARNING: You are using pip version 19.2.3, however version 24.0 is available./ \ V" d! `! Z9 G# s
You should consider upgrading via the 'python -m pip install --upgrade pip' command.; s+ a' r" H/ x( n" q, M# ?
* J( D- A ^- c
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.1.0"
3 m: A5 t" Z L, V- `& n5 QCollecting itsdangerous==1.1.09 m3 y' l. u8 M6 @! ]
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl
_) v$ g# C" \9 C( }4 ~% b2 wInstalling collected packages: itsdangerous
8 y* N. N% V) k, G3 Y( {( VSuccessfully installed itsdangerous-1.1.0/ C+ y4 f: K. U0 W) E) j P
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
- E- S& T8 g8 V9 @' r& M+ C. yYou should consider upgrading via the 'python -m pip install --upgrade pip' command.) j+ e7 W( Z2 W; X, s+ Q
% j; ^; K V2 }3 j
再次验证:
2 A& O; ^; i6 l. |) j7 @C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python1 M( W- X/ ^# }7 ^
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32; R# g# I0 h/ P2 ^! h( X, [
Type "help", "copyright", "credits" or "license" for more information.- @# A/ X& e8 L( y/ i9 l/ w
>>> import flask
6 U% x4 z) |. S* H. a>>> flask.__version__. S3 Y# c; Q5 L8 F
'1.1.2'6 e6 X" q9 K; |8 v9 R. t- ~
>>>% i8 O7 _9 |* L, `1 W+ U1 p
问题解决。- w c% d% J0 v2 E% U
|
|