|
|
C:\Users\admin>python5 g; A7 A2 {* h
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
/ j' y% T K1 S# e2 D( YType "help", "copyright", "credits" or "license" for more information.
- i$ j4 j D* t2 a W>>> import flask* t4 [. Z+ N. v$ M9 O) B$ z
Traceback (most recent call last):
4 B. j0 C, P& l [7 _6 u File "<stdin>", line 1, in <module>* t/ @+ D; Z1 Z1 o2 N/ D
ModuleNotFoundError: No module named 'flask'
7 g. w1 D/ z) e* b# }>>> exit$ j1 c# o! E9 K+ ?2 [
Use exit() or Ctrl-Z plus Return to exit" G$ H& [% z6 |3 e6 ], J
>>> exit()
3 A7 a2 W5 {4 r5 f# P
# |, N) K7 ?: a2 X) h: r; k
8 T) G9 k/ K- e1 U! L# }5 Z+ o1 F7 ^1 D0 d2 B
C:\Users\admin>cd C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2
# \$ b7 R9 @2 X; ^* Z1 V7 j0 G! Y6 y4 F" o6 I
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir. ~( }% n; l; c: M
驱动器 C 中的卷没有标签。
( z+ D! l2 h Y* e; i5 H7 x2 N 卷的序列号是 9825-C512
! P8 G8 R9 _% D) R; I U
. g( v8 \, T: B0 ^ C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录: l) ?( b# j5 @1 z7 s1 M
8 ?5 A% b& o0 l' W: B( a3 W2024/05/25 17:09 <DIR> .
4 r0 Y/ Y: G `- {+ Z$ P: {. X" t2 C( X2024/05/25 17:09 <DIR> ..4 l2 ^, v# X, Q$ x( g
2024/05/25 17:09 <DIR> artwork
! M' h @6 J" M# O+ f+ r2 x" ?& X B2020/04/04 01:03 46,173 CHANGES.rst
6 a5 e7 t* [. Q" U \" c' F& n2020/04/03 22:25 6,624 CONTRIBUTING.rst
$ e" t6 Y% ~7 F3 |* W" E: a$ [; d) n) x2024/05/25 17:09 <DIR> docs
+ N. q7 I! m! P& D. W6 ~1 ~# C2024/05/25 17:09 <DIR> examples
- ?! e7 z6 @' V h0 `& l$ w2019/11/19 10:25 1,475 LICENSE.rst+ W* ~! R6 |2 P) K9 l" w: ?
2020/04/04 01:10 152 MANIFEST.in" ~9 w+ O, D( h9 r$ q0 g. l' B
2020/04/04 01:10 4,547 PKG-INFO
l( q; _" ]$ Z i% ?) w8 F5 J2019/11/19 10:25 2,161 README.rst7 W1 j( ?- K" p1 Y
2020/04/04 01:10 480 setup.cfg& q& C! t2 L( H; q6 W3 ^ C
2020/01/11 09:20 2,799 setup.py
. y( q7 [4 w& S& v+ \ m2024/05/25 17:09 <DIR> src6 }4 n1 [' \; z/ j; @, k
2024/05/25 17:09 <DIR> tests
`) J; ?* s* C; K2020/01/11 09:20 1,709 tox.ini5 A: t7 S4 G2 ^
9 个文件 66,120 字节
& v* g8 D* o) A1 C5 d ^& R 7 个目录 22,689,103,872 可用字节
5 X9 M- w: _; e a7 h1 [7 Y6 L3 M" f: D6 m
安装flask版本1.1.2版本:
8 M% z) `% A- D7 X6 hC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install
3 F3 w; j4 ?- j- r! Y2 Arunning install; l) w4 z' W$ x- ~! R$ D) o
running bdist_egg- ~$ r4 L* W% ~! Q
running egg_info
% v" ^- d6 U$ L8 Q" x6 S' P3 P5 J) Cwriting src\Flask.egg-info\PKG-INFO7 J m' {" b4 i
writing dependency_links to src\Flask.egg-info\dependency_links.txt
: ~- W8 @* \/ m$ @/ X! Dwriting entry points to src\Flask.egg-info\entry_points.txt
9 X! x+ l; s* b; A+ m" e6 Z5 Y T. Dwriting requirements to src\Flask.egg-info\requires.txt
2 N7 p/ e9 H: q3 ]9 \4 Twriting top-level names to src\Flask.egg-info\top_level.txt
0 s2 K' D, ^3 D; d2 s" L) Ureading manifest file 'src\Flask.egg-info\SOURCES.txt' C1 S: Y# ?: a2 F
reading manifest template 'MANIFEST.in'
8 v: z0 P9 u& _$ a1 W! Bno previously-included directories found matching 'docs\_build'
% F; Y% h2 F$ @: c8 Uwarning: no previously-included files matching '*.pyc' found anywhere in distribution: k$ {# l, U" R% W7 d8 B' M% J; N
writing manifest file 'src\Flask.egg-info\SOURCES.txt'- V5 ^* I- u7 y0 Z. R
installing library code to build\bdist.win-amd64\egg
5 `( [ s; i e6 Z# }! prunning install_lib) @/ |8 I% W2 N( g9 \0 L
running build_py4 k0 Q r8 v- z r' L7 d# }
creating build) d' B: R6 M r, u$ }' j3 i: W7 t+ y
creating build\lib
3 y; S0 k! y9 z4 T% Ycreating build\lib\flask* p5 } E; {1 h# h
copying src\flask\app.py -> build\lib\flask7 x2 u, o/ f9 [" r
copying src\flask\blueprints.py -> build\lib\flask
# h. g+ p" k! S1 A4 Ycopying src\flask\cli.py -> build\lib\flask" ^2 r7 `7 f/ r3 `
copying src\flask\config.py -> build\lib\flask6 N m2 {% g% R
copying src\flask\ctx.py -> build\lib\flask2 y; I8 i/ L U/ l
copying src\flask\debughelpers.py -> build\lib\flask
* C- Y2 p/ y, j; b+ hcopying src\flask\globals.py -> build\lib\flask1 o( E4 ]( u4 M! ]+ l
copying src\flask\helpers.py -> build\lib\flask+ c0 S. ?, p- V7 C; R- [' X5 d: x' O) L% o& P
copying src\flask\logging.py -> build\lib\flask/ ?% {/ F2 ?2 H# q. Y
copying src\flask\sessions.py -> build\lib\flask- }( s7 x+ K' J% g$ J
copying src\flask\signals.py -> build\lib\flask
# S- k' G* F* t2 ?& `; U- pcopying src\flask\templating.py -> build\lib\flask
' g# E) g0 n9 Jcopying src\flask\testing.py -> build\lib\flask: y6 n3 ?/ ^, ]! B7 t! N+ h
copying src\flask\views.py -> build\lib\flask
3 v' T0 I; r1 y* Qcopying src\flask\wrappers.py -> build\lib\flask
: Z; q) a% A2 tcopying src\flask\_compat.py -> build\lib\flask
. [' y% M+ O3 o6 F) }7 Bcopying src\flask\__init__.py -> build\lib\flask3 \$ W8 U3 A4 ~9 L% g& N9 P5 e
copying src\flask\__main__.py -> build\lib\flask
/ k) x, ~/ X" d% p9 x/ E Vcreating build\lib\flask\json
# g+ \# B4 {- n8 O; r* Ecopying src\flask\json\tag.py -> build\lib\flask\json
: y+ {8 o4 ]4 C$ C3 qcopying src\flask\json\__init__.py -> build\lib\flask\json
S4 W1 @2 Q* i/ Z+ dcreating build\bdist.win-amd64+ _, A" _# C, v# K; b3 X6 ^ z" \
creating build\bdist.win-amd64\egg" t! l/ ~) E# g: ]2 H) O* A
creating build\bdist.win-amd64\egg\flask9 k- p, v7 p' Q6 Z9 }
copying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
$ i0 X, B4 c5 t) F9 e& U. |& C: hcopying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask0 m- P9 u. a6 Q6 C) g- N, Z
copying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask& U( p3 P2 [% L# a# z4 t- }
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask. |3 X y# S: n" G. _( p
copying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask1 p$ m& j* \6 j: ?: y9 b. Z
copying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask3 n b3 l+ {8 B, y8 w9 U
copying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask
2 ?3 x$ g2 \6 ?( O& S2 Scopying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask; r. T2 M0 u0 [, ?7 w
creating build\bdist.win-amd64\egg\flask\json
: _8 M8 {) z1 \8 M6 Ccopying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json+ J, m$ `6 s X m, }4 m% J
copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
# v3 U3 _) I0 K5 |* `- h( P# Y* vcopying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask
- P( i( Q: J2 s/ y1 _: fcopying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask
8 g7 s1 C& S7 W! ?: D/ V9 Jcopying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask9 F# L" A4 s2 e5 S0 c0 `1 R- k
copying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask1 [) ^- M1 j& r2 ^7 ]" K( l) ^
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask2 w' L) M+ v1 e6 `
copying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask. \6 k8 J, `" O: |2 w- D: h9 S" K
copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
, A5 O0 A" y6 ~2 ?8 T# W+ g- Gcopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask# r: d1 ?$ C/ H& g
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask- ~: x6 v( r& y1 F1 L6 F% q* K/ S4 o8 ?
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
+ Y# j; i- A5 s7 m, c$ R% gbyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc9 v6 F* b# w6 Y y
byte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc. v( g% S/ W' ~% i7 E
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc$ a) u8 z4 S: A: X1 p
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc" B9 P4 Y6 `% ]2 y
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc
6 W" S0 \0 q5 ybyte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
5 O* j+ V- O0 y; Obyte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc; a" ?4 c/ i( l/ n6 p* L
byte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc! B* r- t& T2 i& d! ~! ^- a
byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
2 [: F0 }9 @: S. x5 Obyte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc
% p& |+ b3 `3 e( }byte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc
4 T. m4 B+ C1 V+ t; ]byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc
1 r3 U! P: w7 \+ T: x9 F5 p% W+ ]byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc/ k" T" b6 D8 ^: j( k- V
byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc
D; a: R( t3 s0 e! Ubyte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc+ d+ f$ j/ |) ]- l0 [7 L
byte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc5 e! B$ }4 r s d
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc& I: _# d, S# z. I% A( ~* Q3 A6 _6 p
byte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc/ h& W9 c! T* T2 B' l8 e ?3 p
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc" g; U( h$ u) V4 ~6 V6 {
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc# Q9 o7 L# t F6 e! a- q
creating build\bdist.win-amd64\egg\EGG-INFO
4 R, ?$ F1 U, E8 ]3 c+ ^copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO$ G/ N$ x+ R P1 F+ u
copying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
3 n& Z+ t/ U3 y( k8 J& t+ Dcopying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO7 z2 B1 E' u* F& H$ I* F8 F
copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
5 x, I3 c" q) g" _9 N% y7 Xcopying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
* A0 Y1 R4 d* \- i+ U# v/ Scopying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
* w6 L2 h3 W1 p9 c8 c8 V! fzip_safe flag not set; analyzing archive contents...
5 d) y0 T$ r$ J1 w& q/ |flask.__pycache__.app.cpython-38: module references __file__8 Z. c* Z, U. o- C, a
flask.__pycache__.config.cpython-38: module references __file__- ?- f8 G% y2 K
flask.__pycache__.helpers.cpython-38: module references __file__7 ]7 V" O2 J2 ^3 s5 V& ]5 J
creating dist" h4 J# `9 W7 i$ E: z
creating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it6 P0 y. v, D4 s8 _- y; K1 z
removing 'build\bdist.win-amd64\egg' (and everything under it)* `( |9 y# R2 k7 W5 H; h, Q2 |
Processing Flask-1.1.2-py3.8.egg
& C6 b% y6 l: E- X- }7 screating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg: ? H5 B) j& r% t3 v' f" c, K- G# B
Extracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
! _& t) X1 N VAdding Flask 1.1.2 to easy-install.pth file/ Y+ w$ o+ g* C0 Z2 O
Installing flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts4 a4 G. x! D. W# Q# D0 e$ _( a
Installing flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts. p7 |! ?" g% i, }" V
. U3 k' {) \1 S2 [! N- B" y4 n
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg
# I( L5 a2 ^+ n. K8 f! ^Processing dependencies for Flask==1.1.2
( h# j' L8 j9 NSearching for click>=5.1
1 [+ @, K; t8 a, l6 f$ d: hReading https://pypi.org/simple/click/
; _0 J( M1 _$ b6 U7 tDownloading https://files.pythonhosted.org/p ... 9a7931d1582f3390c28
6 G- I1 I/ w: i* b3 SBest match: click 8.1.7
* G8 ]' R5 c# ?2 e4 A9 v0 [( r4 rProcessing click-8.1.7-py3-none-any.whl
3 n8 u4 c3 _' _ IInstalling click-8.1.7-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages. c# d# w' p; j% O. e- v( ]) [/ f
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
* \& t% a7 b0 v( C" uAdding click 8.1.7 to easy-install.pth file
* B( O' a; d5 O
: [# r( \% j" ?( X- v0 FInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
5 y- [( K6 r) w5 H: `6 VSearching for itsdangerous>=0.240 }- ~% w' t* F* [, ]' l, j
Reading https://pypi.org/simple/itsdangerous/
4 p" {( c/ [) G8 a+ b6 [ YDownloading https://files.pythonhosted.org/p ... db01a3f5891b98700ef9 r* D# T! ?/ c; D! J; i4 E! {
Best match: itsdangerous 2.2.0% }6 ^% I8 ]& ~& m5 [( h
Processing itsdangerous-2.2.0-py3-none-any.whl& h q- E7 a ~5 ]6 o
Installing itsdangerous-2.2.0-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages# I- q# v0 A5 z& ?, p- F3 T- `
Adding itsdangerous 2.2.0 to easy-install.pth file
4 @5 n9 a/ ~; H. A% f3 _, Z/ }5 _& A/ ?! k/ U
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg6 O! F0 I# e" c8 Q5 O
Searching for Jinja2>=2.10.1
* Z7 q" M* [# C0 k6 U; z" wReading https://pypi.org/simple/Jinja2/; _! w ?+ i* S
Downloading https://files.pythonhosted.org/p ... fe6c89c6f9c7d25197d
5 O& d; _: {* y2 lBest match: jinja2 3.1.4
s9 ?, A/ b6 \6 L2 |Processing jinja2-3.1.4-py3-none-any.whl
1 Z0 K7 B, u. K# v( x, EInstalling jinja2-3.1.4-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages/ P, q, F& `# H( G" F
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
' m1 V5 t5 N/ [4 d" wAdding jinja2 3.1.4 to easy-install.pth file7 d4 X/ M; |% P
% F% X: k' G2 D/ a( {Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg
3 n+ B9 `! J+ _% P* I- B0 {Searching for Werkzeug>=0.15
5 o4 j# R" J5 }" s9 qReading https://pypi.org/simple/Werkzeug/
; ^( q( d) A" D( K7 z5 z9 \Downloading https://files.pythonhosted.org/p ... 535fdfe155a17cc48c8% ?# {9 p2 B7 L5 x1 K# b/ V
Best match: werkzeug 3.0.3
! D! [6 Q9 j9 `' }6 y8 oProcessing werkzeug-3.0.3-py3-none-any.whl
f+ ]6 v4 C6 v2 ]: V) I) MInstalling werkzeug-3.0.3-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages! a$ U4 ]. o' k5 Z4 J8 }
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
9 I @* Q8 N& GAdding werkzeug 3.0.3 to easy-install.pth file |/ x4 e: D. K1 @( l9 e$ z
# B* V" [; L( m& v1 L
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg
; k' k1 J- R3 T h- P( ~Searching for colorama
- g! h4 A. P! g! aReading https://pypi.org/simple/colorama/$ I' E, P2 l/ O+ I6 H
Downloading https://files.pythonhosted.org/p ... 11c16baf57afb285fc6
: m: ]5 e' Y9 s. NBest match: colorama 0.4.6
* c5 J! K+ s. y& ]' dProcessing colorama-0.4.6-py2.py3-none-any.whl
6 u2 c P$ J" `, l t! BInstalling colorama-0.4.6-py2.py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
1 V( u0 N+ S$ V% T) h0 F1 hAdding colorama 0.4.6 to easy-install.pth file& q( o4 V' Y7 n2 T! J4 y
2 D7 v" m/ f' l& R' i- D
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg
0 L+ } I+ C: K: ]0 P6 e6 w) ?Searching for MarkupSafe>=2.0
% w8 S) y6 s: H6 g3 _Reading https://pypi.org/simple/MarkupSafe/
# ^. Z5 m$ ]' w0 v! u; L/ B6 r7 vDownloading https://files.pythonhosted.org/p ... b63c00bd1a709c6544b
% t. M7 F3 |) xBest match: MarkupSafe 2.1.5) m q* a; [; e" f) J6 S
Processing MarkupSafe-2.1.5.tar.gz
. p9 s- T" T3 w0 O; D4 X) BWriting C:\Users\admin\AppData\Local\Temp\easy_install-am4pt4f4\MarkupSafe-2.1.5\setup.cfg
" Q" Z+ a3 I; y. U( MRunning 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
3 K3 Z& w. f' @; @3 Ino previously-included directories found matching 'docs\_build'
8 o& \0 ]$ ]# a; k: Iwarning: no previously-included files matching '*.pyc' found anywhere in distribution
+ p: _ e( y* C/ m. Z5 [" ~4 V==========================================================================
& f( r/ I8 z: S! ?+ l+ GWARNING: The C extension could not be compiled, speedups are not enabled.
\$ L; B7 R; v0 x4 c- ^+ nFailure information, if any, is above.
/ s- B" g/ {6 B! Y {2 c Z2 `Retrying the build without the C extension now.
# O( u$ ]+ f# X, F2 p==========================================================================
# a! {# Y6 w+ ]1 n! ]! H/ |/ ~% ^no previously-included directories found matching 'docs\_build'
* O* ~ x" ?4 p1 m) H; ?6 l, pwarning: no previously-included files matching '*.pyc' found anywhere in distribution9 c6 ^' X G8 i2 p2 T: y5 G
zip_safe flag not set; analyzing archive contents...
f% A0 _6 ]8 v+ |==========================================================================
: W0 {! G9 J, L# GWARNING: The C extension could not be compiled, speedups are not enabled." Z; P7 ]' O2 e( Y( ~
Plain-Python build succeeded.& l2 G5 k a$ T* m$ Z3 ]% S1 R( U# Z
==========================================================================8 }5 J$ A0 Q: r1 g) o- \- J
Copying markupsafe-2.1.5-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages5 A, A7 e/ g6 f% n6 b2 p
Adding markupsafe 2.1.5 to easy-install.pth file
1 O! a+ e& U, E5 s% ^/ U$ ?+ b
! c+ ] v$ c' LInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
) Z( H. g. n; n+ C: YFinished processing dependencies for Flask==1.1.2
. u0 V# N. L Y1 S4 h
2 w4 [' ?+ |4 m$ ?C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python
8 @5 Q8 l/ L9 HPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32+ V- x2 C7 N3 b; |( G% F
Type "help", "copyright", "credits" or "license" for more information.
. ?8 k! ~: x( I1 ]6 u% c, z>>> import flask
: R* G3 u2 s9 rTraceback (most recent call last):" P, m0 D+ m7 v: y( ]
File "<stdin>", line 1, in <module>$ a4 \+ |/ L5 x- N
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>( T, O$ b3 \% s7 Y8 ]4 S: k
from jinja2 import escape5 G z6 ~8 s% P/ P4 R
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)
- @" c1 H) Y& ^8 z }
3 E5 n2 S3 m3 S' J: S
7 f: b7 Z: l9 ]0 X" c' J0 o引入报错:
6 F# B" e5 b E' s( T解决pip 组件版本:; p6 Z- ]: g" v, r7 S3 N
) m8 N8 @7 E! u5 H* k- X
- f8 B! Q6 N/ [" kC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
7 q% [( ?6 ?- @+ d3 i" ^ yPackage Version9 r/ |& ]* K+ x& w7 s
------------ -------0 V, K( k" L9 d, h0 p
click 8.1.7( |- S, l; l7 K; |7 q
colorama 0.4.69 n Z+ U9 U5 |5 x
flask 1.1.2* k& O( i1 W" Q( }' Q
itsdangerous 2.2.0
. q/ V) e8 j# c' A$ V( ljinja2 3.1.4
% O1 z; {$ e4 t) w% F" ymarkupsafe 2.1.53 R/ D8 ?: S6 W v) ?" }
pip 19.2.3
W% }9 B2 f q u- \setuptools 41.2.07 W( k0 T% }' X' o( k; o$ y
werkzeug 3.0.31 w6 Q- O3 t* b- w0 P- n
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
6 ~/ {: J3 O, ^You should consider upgrading via the 'python -m pip install --upgrade pip' command.
6 w, g+ C) r: ]% D2 r
9 b$ W0 p9 p; [# E; KC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "jinja2==2.11.2"
# d- I9 h; \+ j( D" }Collecting jinja2==2.11.2
$ L% h7 e# F/ J% K" U; ~ Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl (125kB)
7 f! T. X0 Q* ]* D: @ |████████████████████████████████| 133kB 652kB/s+ l% J& v, @; Q$ m& Z
Collecting MarkupSafe>=0.23 (from jinja2==2.11.2)
y8 H. A( h0 V5 F* | Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl$ e# s/ \9 K t: _
Installing collected packages: MarkupSafe, jinja2
) E2 V2 T$ _3 z" f5 y4 eSuccessfully installed MarkupSafe-2.1.5 jinja2-2.11.27 _: Z n/ l6 v. P% c
WARNING: You are using pip version 19.2.3, however version 24.0 is available.6 G; _" t9 c3 H
You should consider upgrading via the 'python -m pip install --upgrade pip' command./ @" ^2 T& t# V
/ f9 g, K8 u4 f2 P! FC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
6 s; g- q8 h& I, O" H+ gPackage Version
& O, D1 @# s& M0 Q------------ -------3 B" Z7 d9 o4 G2 }! j' s
click 8.1.7, e- S4 G( o f1 x; g o! I0 y
colorama 0.4.6
' |: i+ u" A; W% s- x) X! Tflask 1.1.2- V) l7 l! r* ^! M6 ~* x$ o
itsdangerous 2.2.0* ?8 p0 A: {( K% d' X V( ]
Jinja2 2.11.2
. {( ~9 N2 R! B4 H9 i+ iMarkupSafe 2.1.5/ p: o2 ~. u. D& ]6 j+ z; |1 g
pip 19.2.3
; N9 e9 | A* N( \1 Q% Usetuptools 41.2.0/ \! ]* Z4 I8 j4 c! c) I0 p
werkzeug 3.0.3
$ I3 Z9 v! m4 m N; |# i$ YWARNING: You are using pip version 19.2.3, however version 24.0 is available.
& X; y/ S- O8 N0 TYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
2 n7 |9 [7 O* _9 ]2 V3 D+ g: n; _
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>ls7 x) j5 O% C6 `' R; I3 I. x; p
'ls' 不是内部或外部命令,也不是可运行的程序+ k) ?! [3 W3 |6 \) w- q
或批处理文件。
1 m, N# B4 M( b! ?. f3 y
7 ]" M: y" @7 F9 W1 z) a' b7 aC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir, D, z0 j. l M
驱动器 C 中的卷没有标签。+ o- j0 {( m- I: J. B7 c& P
卷的序列号是 9825-C512
" N$ @- g+ m7 a0 s. V( |7 o0 W! H
0 v& r9 U5 a& _: S. \$ M" L C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
$ {. ^* L6 ^/ Z" n) e i
- T! Y. L7 ^/ r8 D1 A# {9 A2024/05/25 17:10 <DIR> .
4 U S3 [$ v- ~( d2024/05/25 17:10 <DIR> .., H* l; m* E) k% O
2024/05/25 17:09 <DIR> artwork% \ f- U; ~+ s
2024/05/25 17:10 <DIR> build
z; ] x0 [( D. {$ p4 S2 D' m2020/04/04 01:03 46,173 CHANGES.rst
9 S( y. w) u/ a3 b& _$ a2020/04/03 22:25 6,624 CONTRIBUTING.rst" K6 K8 e$ [; X' r- l
2024/05/25 17:10 <DIR> dist$ `! u. ^$ c9 \3 q* P% {
2024/05/25 17:09 <DIR> docs
$ t1 f8 s( S* w2 i) U' l# h2024/05/25 17:09 <DIR> examples" I. X3 {0 g! F" h- z5 c+ j
2019/11/19 10:25 1,475 LICENSE.rst
- p& E7 ?9 M1 i: N+ J; l2020/04/04 01:10 152 MANIFEST.in! ]7 c3 n. W, `6 z) C' Q3 N) Y
2020/04/04 01:10 4,547 PKG-INFO$ Z! S5 m- D0 S- F) r" m1 z4 N( z2 W
2019/11/19 10:25 2,161 README.rst
p& O4 \: a) l5 G1 T! c2020/04/04 01:10 480 setup.cfg
8 K+ G6 U7 f d9 E3 c2020/01/11 09:20 2,799 setup.py
5 `( e0 q5 _3 P7 Q) i2024/05/25 17:09 <DIR> src& M% r* C/ D. V3 ^. A) Q
2024/05/25 17:09 <DIR> tests
% i3 G+ J+ A% s2020/01/11 09:20 1,709 tox.ini( e8 V/ d, m8 U+ s; _9 Y8 u. z# V
9 个文件 66,120 字节
! l8 [5 ^$ |; n) I 9 个目录 22,681,739,264 可用字节
/ J: J3 U: C/ r0 S+ W; [0 P6 L
" f: [; U7 k7 d2 p9 U% r% `C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install& C6 x4 f$ D; F! r A
running install6 D& p* I T" [& n4 a
running bdist_egg
9 ^- Q" P Y" e. i/ Srunning egg_info: H( s# k8 @4 b' c7 r
writing src\Flask.egg-info\PKG-INFO- O1 k9 O5 g6 b& y: C$ |5 V9 Y' X
writing dependency_links to src\Flask.egg-info\dependency_links.txt0 H- g3 }1 C* Z- J" p, w
writing entry points to src\Flask.egg-info\entry_points.txt
2 f; B6 R; B1 g/ J9 ^- V8 kwriting requirements to src\Flask.egg-info\requires.txt
& t# `5 ?4 e- I" J. |writing top-level names to src\Flask.egg-info\top_level.txt
: p2 g; i% c1 s, H7 V! F9 Breading manifest file 'src\Flask.egg-info\SOURCES.txt'2 p& _& q: w+ ?
reading manifest template 'MANIFEST.in'4 ?0 A" b% K7 h8 p' z
no previously-included directories found matching 'docs\_build'3 |+ C; J* \" w
warning: no previously-included files matching '*.pyc' found anywhere in distribution
0 s7 a& v( |) ]1 D; ]) p: @* Mwriting manifest file 'src\Flask.egg-info\SOURCES.txt'* E, @) _- K& a/ \* ^) v( r4 L! a( Q) |
installing library code to build\bdist.win-amd64\egg
V) L/ |9 Z$ p* s, p9 [& q; I4 \; grunning install_lib
# g1 A" h2 | `2 p9 S3 ~; hrunning build_py: g& u4 y1 W' E4 l/ c; n
creating build\bdist.win-amd64\egg
8 G/ I# C* v9 @' Z& q# jcreating build\bdist.win-amd64\egg\flask; u( T. ^6 [8 Z
copying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask/ u% L! h+ i/ ], o! r; ?
copying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask" y2 U) \4 Y7 m: _- r) m
copying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask
) M# n0 }7 i! i3 d/ Ocopying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask
' V7 R9 `* v, Mcopying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask
$ C6 w# \- `, p2 L( pcopying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask
: {4 `- k! Q7 z( f( p. g9 Lcopying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask0 X. F3 A) y1 v5 |" c5 `- E. I% q
copying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask" T' J$ N) n3 ?: M F
creating build\bdist.win-amd64\egg\flask\json: h8 X2 N- B1 x J2 h" I
copying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json* T" @7 a# v# w+ q: @: d: y' u
copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
, a2 r1 p- d2 ?. |copying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask" S' i3 k C* [- W- S
copying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask# `" h. t0 Z: E5 i5 Q7 e$ @# _
copying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask- {! X& I* g- y1 `0 c
copying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask7 v" ?6 m% T( v5 ?1 J2 Q
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask" K' U9 b- f. c+ ?, P/ n( D7 u6 x( t
copying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask
+ h0 i' V: W. F* t8 Q# y! E# N6 h! @copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
' B. @* a: T) u% F9 x; i3 k, g+ bcopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask2 M( i2 f& a, K. O5 n5 e
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask9 d; M) ?( F, k8 X0 u d$ `
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask
7 R* u6 y# K9 g& V5 z C2 l/ @" Pbyte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc
/ `- C: a9 A& I0 b7 Rbyte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc
8 E) x8 }5 V4 v5 w0 vbyte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc
. u: e4 o' t# Obyte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc
) y' |9 y3 n4 @7 b! I. tbyte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc% F# t0 ]$ `9 V: X
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc
, {9 l ~) q+ [) `5 I+ F; Wbyte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc
7 ^8 c+ W/ l! _byte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc
3 \" M* q5 @2 J I- L$ B, m# H }byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
% {5 d( _; a/ ]byte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc& {$ F' R1 o" c2 E& H; y @
byte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc( ^& K* e$ F7 |1 c
byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc
, d2 P6 `) R, r. {9 `byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc0 o0 J$ ^% ]; G, ]% Q
byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc1 A, y: u& h9 H9 {
byte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
8 P+ w9 E9 j; I$ l# abyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc
$ E9 k- {3 |9 D0 Ibyte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc
( A' l+ u T6 H$ Sbyte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc q: S- }7 }7 K6 b4 ]; l
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc
# |$ e) w$ N- q2 Gbyte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc9 s- P c' v& b( u! K; _6 k* t
creating build\bdist.win-amd64\egg\EGG-INFO( a( \. O1 ?% ?: G4 C' j
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO! g# ?2 N9 z6 L8 \( t
copying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
2 h& J9 j' B Ncopying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
1 Q1 n( K, S" Y8 l6 H1 M6 |copying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
( D5 M3 T5 A; Qcopying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
, d4 e- z3 Z( q0 L3 s& Wcopying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO1 l# s' b$ p/ q# Y' q8 ~
zip_safe flag not set; analyzing archive contents... F$ K3 ~8 d2 v+ b
flask.__pycache__.app.cpython-38: module references __file__
# |: D! W( q$ y- Bflask.__pycache__.config.cpython-38: module references __file__
0 f Q3 v/ j( [ y b0 `flask.__pycache__.helpers.cpython-38: module references __file__ b3 v2 f' v, {6 u( C! c' t. U2 L( ]
creating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it
E) J9 _9 ?2 Jremoving 'build\bdist.win-amd64\egg' (and everything under it)
$ i- [+ M; P4 q& YProcessing Flask-1.1.2-py3.8.egg+ N; S" [8 o4 Z+ b- V
removing 'c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg' (and everything under it)
1 u) l) K0 U+ |8 v: Y9 |% ucreating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg
, r" `2 M* w2 z+ |1 hExtracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages5 X5 \! j$ W$ w- i5 e9 W
Flask 1.1.2 is already the active version in easy-install.pth
0 F, [& @6 a0 H4 p8 D) q5 uInstalling flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
7 e5 f) `: y u. O- ?! bInstalling flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts1 B" b* {6 X- w0 h6 H
+ |8 H& G4 f1 i, h5 m+ ?* {
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg- ~8 `/ Z7 i: _4 I i( g
Processing dependencies for Flask==1.1.2
" d8 s0 b6 b; O1 _Searching for click==8.1.7
4 ?& b0 ]2 P& K+ aBest match: click 8.1.7; N; m: W( }2 q& c; ~1 R8 l, L
Processing click-8.1.7-py3.8.egg4 A5 z7 R) v2 i% f. x* K( c5 S
click 8.1.7 is already the active version in easy-install.pth
1 o4 {+ z/ i% I
2 b+ d. Y6 w7 w+ H3 ~ |Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg8 l5 A4 R" {9 ]* ]3 \
Searching for itsdangerous==2.2.0$ w$ D8 {7 F8 }8 z
Best match: itsdangerous 2.2.0
7 H% M/ H0 I% ~ {4 bProcessing itsdangerous-2.2.0-py3.8.egg
/ T) v% }6 w. bitsdangerous 2.2.0 is already the active version in easy-install.pth
( j% V: e Q# T, p% K% @5 ]. ]# j3 t5 q: {
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg
4 }6 x! ~& `; d1 [, K& D$ rSearching for jinja2==3.1.4
3 d( l1 ]' B' M# k' [; qBest match: jinja2 3.1.4# Z- K# [, s# c+ y% f
Processing jinja2-3.1.4-py3.8.egg
) }8 v6 A/ r. c. b6 djinja2 3.1.4 is already the active version in easy-install.pth
2 w" A- ]7 Z( F: i
% t* D$ Y! V7 H5 g: I+ a+ T7 aUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg
, z" @% X& I+ ]/ fSearching for werkzeug==3.0.3
/ N8 c) c$ J ]! g) }4 sBest match: werkzeug 3.0.3
, z) M: v0 n4 ]" ]" s) z0 SProcessing werkzeug-3.0.3-py3.8.egg
8 z$ m' q6 w) Z9 Q, H6 k) ]werkzeug 3.0.3 is already the active version in easy-install.pth; H/ E! ]7 T8 Y. C
/ a8 G" G! \# L
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg. c7 B6 g0 `% w5 o* n7 ~; K
Searching for colorama==0.4.63 Y, }8 P H# \/ x5 U
Best match: colorama 0.4.60 L2 c) S1 K3 j1 `# P
Processing colorama-0.4.6-py3.8.egg
8 w1 b; A$ g2 \colorama 0.4.6 is already the active version in easy-install.pth
# ]6 h9 L0 N4 `1 y4 ^$ @8 L4 @: w; k0 D# A4 G
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg
: _2 C! T/ y; X/ ~; _/ vSearching for markupsafe==2.1.5' ^$ j( _1 z8 J, ^8 L. j
Best match: markupsafe 2.1.58 A8 W! F! z X* c" f
Processing markupsafe-2.1.5-py3.8.egg* }! L+ }, D0 V' Z
markupsafe 2.1.5 is already the active version in easy-install.pth) L5 Q$ ?, {' }
|- J9 v* d7 {* }7 t% L+ Z5 A$ V+ x: y
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
0 ^2 ]; d" a! m6 B3 a* W" NFinished processing dependencies for Flask==1.1.2
' O" Q& p1 }+ h; y; ^4 W5 \; x" d/ w& Z0 u/ f
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list: B4 T$ B- o, M* ?7 R9 `" ^, z
Package Version0 W! d. f- K& l0 A
------------ -------
/ v8 z% ^4 |) J9 `( a# Zclick 8.1.77 T& b+ \$ [; s$ Y
colorama 0.4.6
- [" t1 A' s5 D; K( d6 ~flask 1.1.2
: M6 v1 r6 r5 D0 \itsdangerous 2.2.0
% w; T: C1 L- WJinja2 2.11.2
" K/ e! P3 p$ J: k5 aMarkupSafe 2.1.5
" d& J% N S7 n; b3 lpip 19.2.3' F, L' _3 [; I5 _2 x5 y
setuptools 41.2.0& r; j- E. e" v; h* h! G# a2 `
werkzeug 3.0.3
* [ R1 M" A8 q: D b+ {! zWARNING: You are using pip version 19.2.3, however version 24.0 is available.
2 I; W) K! ?# Q/ j& [You should consider upgrading via the 'python -m pip install --upgrade pip' command.+ Z3 n: H9 c% }' R$ {
4 @) G) n5 E5 k
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python, _, k( E6 j; w1 w$ x# ^
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32+ [2 X3 n, \& k {+ |9 e
Type "help", "copyright", "credits" or "license" for more information.5 l$ Y* r8 q- e- }) o- K8 A
>>> import flask% V' v' V) B% N: S
Traceback (most recent call last):
, B) X" o( Q4 D0 a) v' m File "<stdin>", line 1, in <module>
s* L% c6 d6 u3 T& K. 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>
) H* ~# j9 Z4 g* s w! y- k7 r. x from jinja2 import escape3 H* m1 ?6 H8 c2 n h/ U
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\__init__.py", line 12, in <module>
5 [& f8 B" w- S6 n" n9 v from .environment import Environment) _" U3 ?$ E$ @% F7 s
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 25, in <module> \( r8 _" t4 p" x! D/ r; F
from .defaults import BLOCK_END_STRING s: r% E$ F' b1 [
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\defaults.py", line 3, in <module>! ?" }+ X$ W/ N) N: x6 `
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
i2 Z% z- x* c- `7 ? File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\filters.py", line 13, in <module>
: s- F( @/ v( E& |( i from markupsafe import soft_unicode
3 I- h2 ]3 \* uImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\markupsafe\__init__.py)
% v3 Y& ?4 K9 H' b>>>
) S! X; m! l! h t& P$ R>>>
1 I% m0 l/ M6 O>>>
7 N) o& z7 F: W! m% R' c>>> exit()7 a1 {+ Z v2 N' l
; l4 D! K5 S7 c/ t; N还是报错,版本太高,将版本。
. z$ D( b$ `& ?- i9 U4 X+ W2 D2 s
% f- k/ v {5 W' H" Y& WC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
* O8 Z, s [- d$ r3 V% M2 x- `% X# dPackage Version& U2 N3 I* U' Y) }2 `5 Y% B
------------ -------( g+ B0 \: H3 E; _
click 8.1.7
1 c' p+ L. `* C6 h$ ncolorama 0.4.6
) S: H4 @9 v R7 m5 Jflask 1.1.2
p1 e3 P1 ^% G6 y' V: Y6 D- E Citsdangerous 2.2.0
$ n2 x4 h% ^$ O" [8 I! {Jinja2 2.11.2
% W' E6 D) M9 I' B* ?0 a: E" W F/ W0 TMarkupSafe 2.1.5# R% o% S6 ], f5 g
pip 19.2.36 v2 U4 d" ^0 h \* b$ O
setuptools 41.2.0
! Y9 E( E$ Q2 \) U' m) K( Mwerkzeug 3.0.3
$ a. _4 @* u/ y: mWARNING: You are using pip version 19.2.3, however version 24.0 is available.% J8 M6 `' a# R. D4 C' C
You should consider upgrading via the 'python -m pip install --upgrade pip' command.! B: B; k2 E) [3 a3 D6 g
+ y$ T2 L6 ^0 ~
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"
! V' F) R. H9 n9 |0 QCollecting MarkupSafe==1.1.11 `& W! G5 f i
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
! S' {, Q- [: e. S9 Y& ~ERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.1 @; \' O. k+ ~/ F* z
Installing collected packages: MarkupSafe
! s7 b! b' j# p: U, ^Successfully installed MarkupSafe-2.1.5
3 o. C0 d1 _/ C' a1 d# EWARNING: You are using pip version 19.2.3, however version 24.0 is available.
6 M( r0 ]8 |* Y7 J9 oYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
& ?2 c; m8 m( I% f
2 @+ B* x1 k6 ? GC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1" ! D k3 J3 ?& f0 ~1 H
Collecting MarkupSafe==1.1.1
! y4 x+ a, p, I, C3 f Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl; ?( o" {, }$ } Z: L1 n6 z) b! @
ERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
# Z% D9 k" I6 kInstalling collected packages: MarkupSafe/ j% O0 L3 c$ Q; S' S
Successfully installed MarkupSafe-2.1.5! H' `' i o/ f; b: x/ J+ B+ r
WARNING: You are using pip version 19.2.3, however version 24.0 is available." c1 h8 q0 T) ]' C$ |* I( M. v
You should consider upgrading via the 'python -m pip install --upgrade pip' command.! p& f& P. J6 y7 F
' Z" \8 j# w/ O9 L
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "werkzeug==2.0.0"
% G8 ]" h3 {& N+ NCollecting werkzeug==2.0.06 t0 v& r! m7 z" j; A, s: n
Downloading https://files.pythonhosted.org/p ... .0-py3-none-any.whl (288kB)
& r; F4 J x8 W; g1 {: P L9 ^9 ^7 | |████████████████████████████████| 296kB 656kB/s: Q$ ^% d* v4 M
Installing collected packages: werkzeug
( A9 n1 `( @. ]. t/ y: j& BSuccessfully installed werkzeug-2.0.0
, T. F6 D7 g" P6 C' O; s4 zWARNING: You are using pip version 19.2.3, however version 24.0 is available.
+ N% v" S5 y* l; d G( s! qYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
' p2 W. ~, ]. L
% a# q. z) ?1 F9 kC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"
/ C( z2 h7 M8 {2 X P6 eCollecting MarkupSafe==1.1.10 f" [7 _/ m& A8 ?( o
Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl# g) g4 o! Q% u- L! |
Installing collected packages: MarkupSafe
4 y9 }0 H1 I3 X6 {6 sSuccessfully installed MarkupSafe-2.1.5
/ `0 ?, H7 O, Q* BWARNING: You are using pip version 19.2.3, however version 24.0 is available.
1 m- m' o; S& w/ C% nYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
$ A2 V j1 P& A8 @! O% d, ~) L- V2 L- Q) l6 J, K2 o% Q0 {
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
7 N7 r& | D9 L* U/ LPackage Version9 e. V1 C' Z- h" h) h# |6 p' [8 ]
------------ -------/ v) `7 R. F$ g7 v' O9 _
click 8.1.7# n+ k# Z5 B% s7 x
colorama 0.4.6
& _9 E4 e# _; g( ^8 {flask 1.1.2+ W, F: r& \" ]2 z7 a7 _6 n0 ^4 t
itsdangerous 2.2.0
* t5 T, u+ d7 Y; g# A+ p$ DJinja2 2.11.26 X) [- \8 [% |5 o" @2 u+ c4 V8 ^
MarkupSafe 2.1.5; O" m9 K% m! S6 I
pip 19.2.3
1 c% l- T1 h+ G; y6 h3 e. F5 xsetuptools 41.2.0
- J3 N/ T! N2 P- x7 E4 y! rWerkzeug 2.0.0" Z( Q3 G& S/ b6 y0 [( l2 F+ Z
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
8 C* x) x, {0 t( zYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
* b& } E1 f* X2 p+ @
5 l, Z$ o- |- _3 k* ?; F) Y7 S9 oC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python0 k$ ?0 a5 \" m( f" w. Q& Y
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32* Y9 @: m( z ?7 f8 w7 c
Type "help", "copyright", "credits" or "license" for more information.9 r( P- W" N K) |: c. `
>>> import flask
! q% S. y( a/ vTraceback (most recent call last):- O7 P7 E9 c8 X4 G9 T
File "<stdin>", line 1, in <module>
[" K' z! j6 F# S 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>
4 M, L2 R% D$ O4 I from . import json! t! @4 P- `5 R" `5 s! r
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># `3 W4 p; ?# {
from itsdangerous import json as _json9 e8 }, p: y* ]+ o$ k
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)
) J9 f! B! ]( S" l& V>>> flask.__version__6 r4 S4 V9 ?# E$ k( K) H3 w1 i
Traceback (most recent call last):
( Q* ^4 w) H7 Q$ S* g# `' ^+ I File "<stdin>", line 1, in <module>. Q# |3 d+ E8 l; Z |! s6 ~
NameError: name 'flask' is not defined% c: ^. Y" C7 h# o5 ~$ r: e4 e/ b
>>> exit()& n7 E& k! {6 z' K, j; O4 S3 |
9 ^5 e9 h1 l9 L/ m& _3 d4 |' b+ O! n5 L! ~
5 I: y& b( x0 E. m6 `
再次报错,说明版本依然高:
# S4 p5 p, t8 v3 L5 E- o降itsdangerous版本:
5 ~% u K9 n0 M5 hC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.0.0"
" h$ S7 a+ \; Q) T9 c& tCollecting itsdangerous==1.0.01 U8 V" S- G! R% Q# O# v
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)
5 I1 T% W2 [' k3 f/ EERROR: No matching distribution found for itsdangerous==1.0.0! x3 W0 \$ O9 K& q4 }
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
/ i! j6 o: @) T7 H8 h$ [- s1 ]You should consider upgrading via the 'python -m pip install --upgrade pip' command.
. H7 N5 b% j; P: V9 p9 }8 u- d, n$ R- ?+ s" z8 ~
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.1.0"
4 }( v7 h9 O/ v QCollecting itsdangerous==1.1.0( u7 l- u9 v8 d/ E* \
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl
' ^# k* Y; b* D3 ~0 RInstalling collected packages: itsdangerous g: q; ]; i/ y S7 B: z
Successfully installed itsdangerous-1.1.01 `& E2 ^ A7 M
WARNING: You are using pip version 19.2.3, however version 24.0 is available.' U( y4 w j% D9 k
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
# Q# k0 b% R1 P% {% Q4 h1 V- ^0 p5 d, w' _" }8 N
再次验证:
' E6 ?/ |# E0 d fC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python3 O6 C; h) ~5 _- W8 B
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
# A% ^* j# J) _. N8 [# K' {Type "help", "copyright", "credits" or "license" for more information.
# b7 u0 m; @, J0 Z4 K>>> import flask
+ n" h& W. M) a$ w, u9 U; q; c>>> flask.__version__- o7 E; s' v/ Q2 ~. C7 S
'1.1.2'+ I+ K6 X6 w$ G( l1 s( g
>>>
& ]2 X8 o9 u a d9 J问题解决。
: Q9 \. c# K+ P S |
|