- 积分
- 16841
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
C:\Users\admin>python
9 T& }( s" O+ p3 y* n) aPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
$ z: P1 o" R5 `( O2 n0 QType "help", "copyright", "credits" or "license" for more information.9 m* K- R: Z- H8 E, S4 k" r
>>> import flask' t7 s6 y6 S: c1 N0 B- o0 {
Traceback (most recent call last):: `2 W( p. E8 K* d! q4 g
File "<stdin>", line 1, in <module>/ X/ p: l+ d `' o' ~
ModuleNotFoundError: No module named 'flask'
! K7 b4 `# E, a- ?0 G6 ]>>> exit. s/ a% r2 T# J' x( l- ?
Use exit() or Ctrl-Z plus Return to exit6 \ Z1 s2 h$ i9 Y) j# E8 a
>>> exit()
+ S# {5 ]8 z$ s, I- n# ]% {9 ]$ F! L- L- }$ @
- I! o. r i3 e
# P/ F5 U' p& V& g- t9 @" H* GC:\Users\admin>cd C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2
7 ]9 Z. I+ Q4 m) k2 s
# `4 Q5 r, B/ k; TC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir7 V+ x9 G. _) s8 E8 {# |: {% q) q
驱动器 C 中的卷没有标签。1 t/ A: [7 S3 Y% M
卷的序列号是 9825-C5124 p( S5 T5 q- b6 E2 i
' v7 R' \4 \7 S; w' t, j1 x
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录. j1 }1 Z" o3 v3 Q( w9 {, e) R
# ~/ L3 _ }# P% A2024/05/25 17:09 <DIR> .4 P3 h( u3 R( c" |, c s( J+ f
2024/05/25 17:09 <DIR> ..
9 {4 `4 z# @) D9 F7 {2024/05/25 17:09 <DIR> artwork
( x% |% w9 I; W7 F; P2020/04/04 01:03 46,173 CHANGES.rst! z: f1 Z _: Q5 f2 h- |
2020/04/03 22:25 6,624 CONTRIBUTING.rst
O: }' B' o, [4 q7 D2024/05/25 17:09 <DIR> docs( `0 _7 w- Z, d5 y
2024/05/25 17:09 <DIR> examples* L! p u( \. l
2019/11/19 10:25 1,475 LICENSE.rst/ U _0 ~7 p4 k: m
2020/04/04 01:10 152 MANIFEST.in
$ u! A, \- y4 V8 X7 B2020/04/04 01:10 4,547 PKG-INFO0 X! ~' x; d2 O" e
2019/11/19 10:25 2,161 README.rst
3 R3 }* }+ h7 M6 v: X2020/04/04 01:10 480 setup.cfg. H9 o8 `4 U5 V ~9 n$ k( }% v4 k
2020/01/11 09:20 2,799 setup.py: R2 C& z- q. ]! Z! b+ `; F" ~
2024/05/25 17:09 <DIR> src$ i* d8 d! {* t! Y4 O
2024/05/25 17:09 <DIR> tests
l$ {8 n* F: Z9 b6 S2020/01/11 09:20 1,709 tox.ini
" `7 @2 w2 \& N2 r& j% ~/ t5 R 9 个文件 66,120 字节, v( y! f, U8 H" N
7 个目录 22,689,103,872 可用字节, I6 x! c- ]2 \2 I" S% }" W
; a8 x! l4 W5 j9 r' Z) l8 O6 a安装flask版本1.1.2版本:: ~5 q3 t% @2 z, H% d5 O8 K
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install
" w4 N% T6 s) h# @. O+ b/ Rrunning install
3 N" C: N0 T) R9 E$ x- o. ~$ }running bdist_egg0 {0 y# O% ]: N f7 M6 y
running egg_info
, ]. F" |) c" T5 X0 J, `3 H7 {writing src\Flask.egg-info\PKG-INFO
/ R& r1 Z9 o5 h6 P/ k9 _; R. zwriting dependency_links to src\Flask.egg-info\dependency_links.txt- k' b& c6 Y; f4 {6 r
writing entry points to src\Flask.egg-info\entry_points.txt+ h7 D6 ^% s/ P- ~- i( q
writing requirements to src\Flask.egg-info\requires.txt" n! L" U$ I$ A# x7 S3 M6 ^" A
writing top-level names to src\Flask.egg-info\top_level.txt2 e# c4 J. U/ x L, ^. _' i
reading manifest file 'src\Flask.egg-info\SOURCES.txt'1 M* ?! c1 c) `* t. f9 j8 Q! d9 ]( C
reading manifest template 'MANIFEST.in'
" m" ~, ~' v0 w, u+ f7 s Pno previously-included directories found matching 'docs\_build'
3 X& U2 }2 k) Uwarning: no previously-included files matching '*.pyc' found anywhere in distribution
2 ?3 C K3 C; N" Y& N9 e: awriting manifest file 'src\Flask.egg-info\SOURCES.txt'2 M4 ~' D; B4 \( l( t
installing library code to build\bdist.win-amd64\egg' r7 H' e6 t. r" P. t9 ~2 d
running install_lib+ i5 K( r6 S' G
running build_py: r2 \# [- W2 u0 Q% @$ h: C/ G7 t
creating build2 s3 S% X% \! _$ D7 p8 g
creating build\lib
$ W$ I: N, V" D/ lcreating build\lib\flask
/ i ~/ H' q' d# o' M0 _copying src\flask\app.py -> build\lib\flask7 f8 m F6 ~* z$ X0 A5 i
copying src\flask\blueprints.py -> build\lib\flask6 V( N' n7 K3 u) O& k; l7 A$ @9 D p
copying src\flask\cli.py -> build\lib\flask) t! O6 r$ l8 o7 _! M* I
copying src\flask\config.py -> build\lib\flask& T4 L, ~; t" G/ T0 Z2 A5 i
copying src\flask\ctx.py -> build\lib\flask8 P& e8 m& Z. k$ S
copying src\flask\debughelpers.py -> build\lib\flask
& L- C4 h$ ?* s( Ncopying src\flask\globals.py -> build\lib\flask
1 ^& K! Y+ z, X8 t7 u) g* tcopying src\flask\helpers.py -> build\lib\flask8 b1 B5 q$ Z: {' c0 F) U
copying src\flask\logging.py -> build\lib\flask6 \8 H+ @8 t+ f2 C, U
copying src\flask\sessions.py -> build\lib\flask
2 i- }$ I, N, q1 L bcopying src\flask\signals.py -> build\lib\flask
A& {- k$ q$ U$ h1 ccopying src\flask\templating.py -> build\lib\flask) t m( E# o# a8 ]. E, `
copying src\flask\testing.py -> build\lib\flask
3 K) V! h" k2 S/ I6 Ccopying src\flask\views.py -> build\lib\flask
0 a) a/ i6 y$ W. Scopying src\flask\wrappers.py -> build\lib\flask
% [- F! M) P0 t8 S8 Ecopying src\flask\_compat.py -> build\lib\flask$ Z! ]2 k: ^8 W! l
copying src\flask\__init__.py -> build\lib\flask" _ y5 x$ O1 U0 O4 a
copying src\flask\__main__.py -> build\lib\flask
) j# F& t4 Z! M4 _creating build\lib\flask\json& N9 `0 [$ i$ J |
copying src\flask\json\tag.py -> build\lib\flask\json, d6 ?- w: c8 b' d, U
copying src\flask\json\__init__.py -> build\lib\flask\json
4 P& Z$ d' Z I! I9 ^! Screating build\bdist.win-amd64. E1 U2 I8 c3 z: p
creating build\bdist.win-amd64\egg4 a1 o+ a2 x# ?' W9 \* F
creating build\bdist.win-amd64\egg\flask
5 c1 \3 T# r: K7 Wcopying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
h7 `* F" p1 R: j5 ^5 X6 bcopying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask
" h0 v: E3 w; S8 R! j+ ^& W0 hcopying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask5 d! j0 u7 j2 @4 z
copying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask2 q8 O: B4 g, U) q. E; k% P
copying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask
+ K" @" X& R/ A+ H' H9 Kcopying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask! ]) c7 f/ x8 |1 @
copying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask
: f$ w( G9 I+ i) J- zcopying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask
6 O0 y: { R4 n# r9 S% V$ I( Tcreating build\bdist.win-amd64\egg\flask\json
. y) V* K+ a* _, d9 ^+ P Icopying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json
9 m. a/ ^' o: N* ]& c. `copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
" n* [4 Z% \9 |copying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask+ d0 z2 C S" E, D, {: m
copying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask
2 G3 J: G7 F* }. d8 dcopying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask m& h% u; f& v/ E! L* N
copying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask( N5 P* q3 E# g
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask+ S, \: [# L' ?4 `" A, f% C
copying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask5 S! B9 j/ F# h4 h% Z7 J: f
copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask
; x& ^" ?# q& z! Ncopying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask& N$ G+ I+ W A8 J+ g# t" ]6 U9 K/ ^
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask5 o! |, p/ T& |8 o
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask$ I( Q" Z% [3 [4 r7 u- {
byte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc0 f' s% i/ q0 y7 U
byte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc
$ w2 E3 t( p; B I* W5 [6 |( ]9 ubyte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc3 \$ j4 B4 ?" k3 x
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc
8 U. v5 x0 Z* Y- Xbyte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc& V; \: ]% [3 T0 n* u
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc. I+ g0 Q1 ^. @7 q3 k g
byte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc
" W# y w1 h$ Jbyte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc! j' l" V" i% N, `2 G5 k5 i( T
byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc# e1 ]# W# B/ }3 u) M3 U0 l
byte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc4 |: ~3 Q) g1 O4 V/ ~
byte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc6 h' Y1 j0 A& r W( u; _+ g
byte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc
* C u p9 |' b& K C& }) }. `byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc
2 F. p3 t# I; v7 [byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc' F) X, L* v" g
byte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
& j) w/ f6 U4 n/ Ybyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc$ ?: G( v: P5 \4 f% h
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc
$ ?% W7 o! ~ E0 m! ], @byte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc/ Q4 k- `. ]* \, o9 a: O4 {
byte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc! |- B3 u. L) M) {) a' b7 f7 |
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc! o1 g8 N" N6 H! Q* D2 }
creating build\bdist.win-amd64\egg\EGG-INFO" a; a0 @' A$ I$ P" g. q2 d; U- J" T
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
8 M0 F9 l/ N7 n; i6 ecopying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO- w$ r- G! y S+ B; f; k* _, G
copying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
8 i" ?1 J5 t/ Q& ~4 `; ~ Ecopying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO3 S3 p* N* U# j+ y
copying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
: }2 `( ^' M5 U, v0 `0 dcopying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO( K. X- i/ y1 r7 e9 ^/ q4 l
zip_safe flag not set; analyzing archive contents...
, x l a5 {3 @# q, z! F$ ~- E; fflask.__pycache__.app.cpython-38: module references __file__6 a' `; }4 W5 \
flask.__pycache__.config.cpython-38: module references __file__
( r1 g8 P9 q3 q" w8 C cflask.__pycache__.helpers.cpython-38: module references __file__
2 s/ d0 X0 x( h kcreating dist; ^- f4 I5 F+ v( r# F0 b, j
creating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it: c# M T/ x4 n w% r* m; E
removing 'build\bdist.win-amd64\egg' (and everything under it)
. ^& q2 J7 ?3 z5 u$ qProcessing Flask-1.1.2-py3.8.egg3 c+ Z5 Y5 G* n8 R
creating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg
8 |/ a: |! m5 V& a; F6 zExtracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
3 r/ h; c8 g4 m5 n3 iAdding Flask 1.1.2 to easy-install.pth file" G3 ^, {6 ?% k
Installing flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts& `8 Y t; B2 _+ }: k+ R8 i+ A
Installing flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts- u) E) {4 B4 p6 Z* S
7 m: A% ]5 G. x9 lInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg
; |: T3 C1 E% q$ t+ zProcessing dependencies for Flask==1.1.2 L8 D$ \$ {4 h
Searching for click>=5.18 q& m) n5 h; e$ \4 x" O
Reading https://pypi.org/simple/click/
1 }2 f% z$ P6 p) E! E4 e: d6 X' jDownloading https://files.pythonhosted.org/p ... 9a7931d1582f3390c287 a% L0 j! h! Y, x1 {
Best match: click 8.1.7
9 z8 G$ f$ v& @# WProcessing click-8.1.7-py3-none-any.whl
3 A4 ~6 X& z% d' w3 z7 PInstalling click-8.1.7-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages) S8 E3 |/ T& \7 t$ ^# @; T$ s
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
- j' L3 |, z' ]8 D WAdding click 8.1.7 to easy-install.pth file
2 H/ b4 O3 `' x9 S( B9 h! X
2 n& Q) T7 r" lInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
6 C% k& N$ ~% C) @6 ZSearching for itsdangerous>=0.24
" \' y: a- q' E; hReading https://pypi.org/simple/itsdangerous/) w; p! R9 h7 Y
Downloading https://files.pythonhosted.org/p ... db01a3f5891b98700ef
- E" q3 {( I2 W# XBest match: itsdangerous 2.2.0- N3 _0 m N4 j) k4 J# {; c2 a( u
Processing itsdangerous-2.2.0-py3-none-any.whl8 J" [ |: `; w F" a
Installing itsdangerous-2.2.0-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages& p3 z& v2 Y- R2 L: D
Adding itsdangerous 2.2.0 to easy-install.pth file
: c3 i* L: K& `* b* N# r$ m8 I
3 j0 v! F) ?9 f. o0 o6 B; L! QInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg0 M$ M$ S' X; \# }2 d& m9 U; F
Searching for Jinja2>=2.10.1
9 k. n9 Y( g9 d: E) I/ z$ s% rReading https://pypi.org/simple/Jinja2/
: t j4 N7 o% ^' p% H! |: KDownloading https://files.pythonhosted.org/p ... fe6c89c6f9c7d25197d
% e2 n/ w! H( eBest match: jinja2 3.1.4% O( F# \! e+ }, e
Processing jinja2-3.1.4-py3-none-any.whl' y3 n' q- h( }
Installing jinja2-3.1.4-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
% b7 {. a- h! Y; Kwriting requirements to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg\EGG-INFO\requires.txt
- `- c% r, z' sAdding jinja2 3.1.4 to easy-install.pth file2 ~1 u. u3 W" X: ^" \2 g8 x
# b" a5 ^1 G2 s5 w! J+ c4 zInstalled c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg6 ?) I! |3 Q9 Y
Searching for Werkzeug>=0.15
( A1 {. ]: y& e& @Reading https://pypi.org/simple/Werkzeug/) R2 x; `6 |: ?6 Z; w
Downloading https://files.pythonhosted.org/p ... 535fdfe155a17cc48c8% n1 |' o8 J3 g0 r. @
Best match: werkzeug 3.0.37 M w0 e- _( I B, |
Processing werkzeug-3.0.3-py3-none-any.whl
( t" f5 v- E4 n7 RInstalling werkzeug-3.0.3-py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages
8 ~* U U0 f" ~1 i7 _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
4 D' t/ V; m5 v% `# D7 D: K DAdding werkzeug 3.0.3 to easy-install.pth file
/ v+ ~, O3 u4 d4 l3 _/ H: C4 w' Y- a5 C6 J) C8 e. A
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg
3 W9 d: y& H% B8 O8 V2 T; e. hSearching for colorama
, m- T; \9 r# ~9 A, k4 K7 E$ |) TReading https://pypi.org/simple/colorama/
+ J7 \! f; p$ cDownloading https://files.pythonhosted.org/p ... 11c16baf57afb285fc6! O* q T1 d) _. s; y1 ~+ [
Best match: colorama 0.4.6
& ?! Q, c6 E J+ W: i9 b7 |Processing colorama-0.4.6-py2.py3-none-any.whl! f. Q5 O7 ]3 c& l( }& M1 H& E8 y
Installing colorama-0.4.6-py2.py3-none-any.whl to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages% S$ t5 e% {) y) ?0 ?
Adding colorama 0.4.6 to easy-install.pth file) r& p2 a1 M& L2 K1 P8 A% r
, v# O3 w1 e; E- o7 t4 V/ c1 A
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg
5 X; d. |3 j7 m$ ^" } C9 ISearching for MarkupSafe>=2.0
# h+ [3 s7 B$ H3 U& ?3 q. wReading https://pypi.org/simple/MarkupSafe/
) j9 F' d# n6 [* ]- a3 FDownloading https://files.pythonhosted.org/p ... b63c00bd1a709c6544b4 M' R1 l7 S3 I& e
Best match: MarkupSafe 2.1.56 g$ x! U# b2 r" y9 p
Processing MarkupSafe-2.1.5.tar.gz3 }+ \) |6 s6 ^) f! i8 I: x
Writing C:\Users\admin\AppData\Local\Temp\easy_install-am4pt4f4\MarkupSafe-2.1.5\setup.cfg; G9 W* N: o7 _ B% |0 g
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
8 e# h; U0 x) e ~4 D3 ?. ^6 ^6 K( x2 qno previously-included directories found matching 'docs\_build'
+ C4 u# U0 Y/ b0 e+ L/ W7 Dwarning: no previously-included files matching '*.pyc' found anywhere in distribution. j4 P1 T1 A* R, B- t1 F* x+ L
==========================================================================+ L; Q" @ I" P5 a6 g- K1 B
WARNING: The C extension could not be compiled, speedups are not enabled.) _' E' k/ x' \4 Y. f" f7 E+ V: Z$ `
Failure information, if any, is above.
( t) s% l3 I# ?2 u* r( uRetrying the build without the C extension now.
. F2 q: ~& d; R==========================================================================
; g+ C# }. l. F6 T D+ |no previously-included directories found matching 'docs\_build'
) C V' K: N* e+ S" p7 dwarning: no previously-included files matching '*.pyc' found anywhere in distribution
8 m" Z% t$ A1 d# T& u% |zip_safe flag not set; analyzing archive contents...
$ o; N& r7 c7 g0 Q4 C3 t==========================================================================
* S3 Z% K* y" MWARNING: The C extension could not be compiled, speedups are not enabled.) i5 O: Y3 t! Y% z7 e
Plain-Python build succeeded.
9 S' ~! l" l; H==========================================================================" f, `* p, J& ]2 M- Y+ \
Copying markupsafe-2.1.5-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages0 {2 M* q) l* |* Z3 W
Adding markupsafe 2.1.5 to easy-install.pth file
! `8 L U) }* h K- Z( H3 E3 H" N$ g# {: c+ e; ~% m5 S' J
Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
0 J! F t: i% T' h5 L$ AFinished processing dependencies for Flask==1.1.2
4 u4 f( O7 d$ C1 m6 y- P/ d( F/ T& c1 v7 u* \) m4 ]
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python
; `/ L8 R r6 T3 q8 ~7 `# j, CPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win323 u" d W7 ?) W
Type "help", "copyright", "credits" or "license" for more information.
0 S) z' q" z4 A>>> import flask2 W5 q- {6 A! m5 {; ~
Traceback (most recent call last):2 [9 b3 `+ [6 S5 c m8 v1 ?
File "<stdin>", line 1, in <module>
J& D2 L' O2 J6 l G& {; u 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>
E* s3 Z5 P' R1 o, q$ D from jinja2 import escape
. }& x: W+ g6 Q- uImportError: 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)
( z- _0 W) m. y6 R& E& j6 m/ v% u$ ~% L6 c7 ?1 ?
( w: A4 e e0 w8 l1 ]5 `; E
引入报错:
2 { r! r* [ ^, I% l解决pip 组件版本:) Q; |% t Q, b1 `8 G- ]3 O0 I* ^
0 G' ` ~8 n) ? E. Q
; A; j4 P5 n/ Y/ sC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list0 f: a$ W* x: K2 t; s. v2 p) i/ ?
Package Version9 o; _8 k( F* j' B$ N o
------------ -------
5 c `- R8 f3 Y3 jclick 8.1.7$ p( ]" v. L7 r, K" S$ J" ]! d
colorama 0.4.6
- w6 N9 Z# e& E. u% Zflask 1.1.21 g* L9 t. ~' B( M
itsdangerous 2.2.0
3 L i4 C9 A3 h& A+ Gjinja2 3.1.4
! A1 C. H/ T7 \+ Vmarkupsafe 2.1.5/ _1 l+ C3 c. C& [* k
pip 19.2.3) N) @& H3 N" {* N" A( r, T/ `
setuptools 41.2.0- ~ _7 R( S6 w0 ^' }0 v- K$ b1 n
werkzeug 3.0.32 L9 d2 a% z6 K9 M/ N- Q2 l. `
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
- y1 N" | @3 t4 J/ J, s- i' fYou should consider upgrading via the 'python -m pip install --upgrade pip' command.2 v+ }9 h6 @9 Y' c2 P" b
, X, M6 H6 ?! YC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "jinja2==2.11.2"" y, i- A0 }6 ?* M
Collecting jinja2==2.11.2
1 N9 L7 y% q) p0 V/ Z0 r( m Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl (125kB)* E- t: {8 z, O5 P
|████████████████████████████████| 133kB 652kB/s
& x' j9 x$ m2 @; _Collecting MarkupSafe>=0.23 (from jinja2==2.11.2)" ^# o8 S* _* \9 C% y2 q/ [
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl$ |7 y% W3 n2 R8 `* V' d8 j3 g
Installing collected packages: MarkupSafe, jinja2
+ I) b. w1 h7 J7 f2 y- MSuccessfully installed MarkupSafe-2.1.5 jinja2-2.11.2* D& h: p; M3 N3 A. w
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
( }$ ?) n; O% w; l F8 BYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
* y9 o) e E! q7 {% m7 s& ?
* M. x/ q' c3 e8 V qC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list+ H9 P2 a: n( a
Package Version
( L: ` @ H: j6 S$ l------------ -------
1 l( B% o3 Z8 l* A4 uclick 8.1.7' l( B" b& Y3 @
colorama 0.4.6* A8 B) Y n- A o
flask 1.1.2. b/ p% r, d* P
itsdangerous 2.2.0
/ {. H( A# o) g0 u$ |. SJinja2 2.11.2
* f r1 ~; f( e$ I& E) G# W- }MarkupSafe 2.1.5& Q% ]* k/ h4 a
pip 19.2.3
3 m7 D; `0 m n0 N& G( z; _setuptools 41.2.0+ l$ K6 B5 w# G5 D; v
werkzeug 3.0.31 S) V' d3 |! T. y, z
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
{9 P8 m* Z% p: L9 s" |8 @You should consider upgrading via the 'python -m pip install --upgrade pip' command.
4 L" d6 P( K, U* }/ M& v+ M, w+ U0 @+ ] Y8 ~. i+ f# i# E; w
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>ls
& S) n9 j, S3 X( R7 w d1 l'ls' 不是内部或外部命令,也不是可运行的程序
( m0 m; r9 j ~& S" v; s或批处理文件。
' [$ h' y* W; [: d4 r# W# \" v
9 y: a6 ~# L" s6 q4 JC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>dir
0 }& B+ E$ z1 o" f: H7 z8 V 驱动器 C 中的卷没有标签。
8 A- C6 M$ b. {7 t. E 卷的序列号是 9825-C512% R$ m1 _$ {! U1 J
6 w, P* N a1 B" p3 W' r
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2 的目录
1 ^# d6 T' B9 }3 K1 d8 D. j$ j
* S0 S+ x, ~/ D" g. P5 U. `1 t2024/05/25 17:10 <DIR> .# s7 \$ ^, c9 ^$ n% L1 v
2024/05/25 17:10 <DIR> ..3 ~; i- N/ O. j
2024/05/25 17:09 <DIR> artwork
6 b1 N, n7 Z2 y! W2024/05/25 17:10 <DIR> build
: j9 f, F6 C) O% {2020/04/04 01:03 46,173 CHANGES.rst. e' g9 [4 }, r- X
2020/04/03 22:25 6,624 CONTRIBUTING.rst
$ ^5 I3 E! d- y: y: C; U- I/ j2024/05/25 17:10 <DIR> dist
% b7 K7 O6 Y8 h* \2024/05/25 17:09 <DIR> docs8 e l) s" E: k; B( p
2024/05/25 17:09 <DIR> examples( C9 B3 Z9 \/ u% e# _
2019/11/19 10:25 1,475 LICENSE.rst
* l& L. @$ b3 x8 Z3 D4 R2020/04/04 01:10 152 MANIFEST.in5 n2 O2 C" U4 {8 o
2020/04/04 01:10 4,547 PKG-INFO: s4 Y! c* Q( c
2019/11/19 10:25 2,161 README.rst
5 q! |5 e+ p' U2 Y" V2020/04/04 01:10 480 setup.cfg, I* X6 t# I6 |1 l
2020/01/11 09:20 2,799 setup.py
' c. J& N% v' W* n9 Z( N0 Q2 M2024/05/25 17:09 <DIR> src j' c, Y- Q$ K
2024/05/25 17:09 <DIR> tests8 y: i. v1 I z. X
2020/01/11 09:20 1,709 tox.ini9 ]; L W7 U! `0 U L( f4 q
9 个文件 66,120 字节
, ~+ H2 J4 @9 u 9 个目录 22,681,739,264 可用字节4 r) @' b+ v% d0 C8 m+ V) n4 M
8 L6 P5 J2 X) X* D1 J1 \( SC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python setup.py install! S1 R# {# M& g5 z# O5 c0 o
running install! ?3 d. S1 T. N u0 `& Z
running bdist_egg! [) [8 t4 \1 J. ^6 l1 U/ @
running egg_info2 C2 G4 E7 K& U# J0 @+ d
writing src\Flask.egg-info\PKG-INFO
; r* f; o% l: awriting dependency_links to src\Flask.egg-info\dependency_links.txt
1 O: W' Z4 N8 Xwriting entry points to src\Flask.egg-info\entry_points.txt
" H6 Q. V/ [/ y3 Q; H: |2 ^writing requirements to src\Flask.egg-info\requires.txt
( k$ P% w) R; j# J6 swriting top-level names to src\Flask.egg-info\top_level.txt' N& J% l5 C m: y9 C4 E
reading manifest file 'src\Flask.egg-info\SOURCES.txt'
7 W$ _1 e; F& n' W( b/ K! w$ sreading manifest template 'MANIFEST.in'3 I% j2 _6 P/ Y# N4 t
no previously-included directories found matching 'docs\_build') ^4 k$ j* b- ]4 g' |
warning: no previously-included files matching '*.pyc' found anywhere in distribution S6 i% ~& h3 B# k; p
writing manifest file 'src\Flask.egg-info\SOURCES.txt'# }, S( n, d l. Y( d [
installing library code to build\bdist.win-amd64\egg
+ R6 A# y s7 {/ H7 F: Rrunning install_lib
7 W8 q+ N2 h8 ~8 z8 r( e @running build_py, k6 F0 y/ Q$ H$ {" T3 ` h$ M3 G
creating build\bdist.win-amd64\egg
1 V, P2 Z( a' U( y/ Kcreating build\bdist.win-amd64\egg\flask
" C# N- C/ W5 S+ Kcopying build\lib\flask\app.py -> build\bdist.win-amd64\egg\flask
/ ?9 b1 w- \" A, {" t- `5 j* c* Dcopying build\lib\flask\blueprints.py -> build\bdist.win-amd64\egg\flask
: P4 D0 X5 _0 W8 x7 f' zcopying build\lib\flask\cli.py -> build\bdist.win-amd64\egg\flask
3 ]2 q# ?2 U8 G6 U( v" ?; Gcopying build\lib\flask\config.py -> build\bdist.win-amd64\egg\flask
) W) O7 _8 ?& Qcopying build\lib\flask\ctx.py -> build\bdist.win-amd64\egg\flask
* }8 C. a: T, K; J0 ocopying build\lib\flask\debughelpers.py -> build\bdist.win-amd64\egg\flask
, v1 R& y* n& P, hcopying build\lib\flask\globals.py -> build\bdist.win-amd64\egg\flask2 s: `5 _; z/ q5 g/ U, q2 J; I
copying build\lib\flask\helpers.py -> build\bdist.win-amd64\egg\flask3 f! D* m( b% M' L
creating build\bdist.win-amd64\egg\flask\json* C! z9 r' ]: O+ r; B
copying build\lib\flask\json\tag.py -> build\bdist.win-amd64\egg\flask\json' [; d- }+ {) Z# Q* b
copying build\lib\flask\json\__init__.py -> build\bdist.win-amd64\egg\flask\json
# I$ {6 f9 K' W$ fcopying build\lib\flask\logging.py -> build\bdist.win-amd64\egg\flask* I3 E: v' S9 N6 _
copying build\lib\flask\sessions.py -> build\bdist.win-amd64\egg\flask
) i5 o8 x! w, P/ _% {7 Ucopying build\lib\flask\signals.py -> build\bdist.win-amd64\egg\flask+ T9 w; F2 E. h4 [, F
copying build\lib\flask\templating.py -> build\bdist.win-amd64\egg\flask2 E9 C% h/ k- w U# E
copying build\lib\flask\testing.py -> build\bdist.win-amd64\egg\flask
! ]9 H! s$ x$ Z3 E( h' D/ Qcopying build\lib\flask\views.py -> build\bdist.win-amd64\egg\flask+ Z) M* Z) Y8 q6 X# x$ \0 f
copying build\lib\flask\wrappers.py -> build\bdist.win-amd64\egg\flask# B, W- D* L! D- b
copying build\lib\flask\_compat.py -> build\bdist.win-amd64\egg\flask# T* N; E q+ Y z
copying build\lib\flask\__init__.py -> build\bdist.win-amd64\egg\flask- k5 j1 j. c8 Z1 @
copying build\lib\flask\__main__.py -> build\bdist.win-amd64\egg\flask4 {5 j' d4 J# I3 @" p
byte-compiling build\bdist.win-amd64\egg\flask\app.py to app.cpython-38.pyc
- V n+ K! E5 {, v Ybyte-compiling build\bdist.win-amd64\egg\flask\blueprints.py to blueprints.cpython-38.pyc% d* ~7 \' Q' {7 n
byte-compiling build\bdist.win-amd64\egg\flask\cli.py to cli.cpython-38.pyc$ ]# N0 G* h7 h- @
byte-compiling build\bdist.win-amd64\egg\flask\config.py to config.cpython-38.pyc5 ]# }6 J+ _& X- x& r
byte-compiling build\bdist.win-amd64\egg\flask\ctx.py to ctx.cpython-38.pyc6 j% @. Y8 Z5 Y2 R9 G$ U
byte-compiling build\bdist.win-amd64\egg\flask\debughelpers.py to debughelpers.cpython-38.pyc: w( g7 M- p8 F9 g8 y! }
byte-compiling build\bdist.win-amd64\egg\flask\globals.py to globals.cpython-38.pyc; q5 n; d/ d$ L4 L0 y
byte-compiling build\bdist.win-amd64\egg\flask\helpers.py to helpers.cpython-38.pyc! O5 u2 a0 W% J( T# F! c6 Q
byte-compiling build\bdist.win-amd64\egg\flask\json\tag.py to tag.cpython-38.pyc
3 \* W# W& c0 Q, C. ^ m+ ^# pbyte-compiling build\bdist.win-amd64\egg\flask\json\__init__.py to __init__.cpython-38.pyc/ X; e9 q3 F- i" @
byte-compiling build\bdist.win-amd64\egg\flask\logging.py to logging.cpython-38.pyc
! _8 Z. g3 _3 Q& P2 `9 d. qbyte-compiling build\bdist.win-amd64\egg\flask\sessions.py to sessions.cpython-38.pyc$ `8 J, g; u% z
byte-compiling build\bdist.win-amd64\egg\flask\signals.py to signals.cpython-38.pyc
& B) \1 B }# F7 N2 i% [6 r* D$ ]9 _byte-compiling build\bdist.win-amd64\egg\flask\templating.py to templating.cpython-38.pyc
2 h( b) h s; i" S4 r$ O9 q' L' pbyte-compiling build\bdist.win-amd64\egg\flask\testing.py to testing.cpython-38.pyc
9 x0 h3 }1 y4 Sbyte-compiling build\bdist.win-amd64\egg\flask\views.py to views.cpython-38.pyc* L' ? K: }. L$ e" u
byte-compiling build\bdist.win-amd64\egg\flask\wrappers.py to wrappers.cpython-38.pyc
. ]* T4 D0 C$ ?. }# j; cbyte-compiling build\bdist.win-amd64\egg\flask\_compat.py to _compat.cpython-38.pyc
5 z# O( h5 ?% X! Wbyte-compiling build\bdist.win-amd64\egg\flask\__init__.py to __init__.cpython-38.pyc6 H$ o$ ^0 E( g& x
byte-compiling build\bdist.win-amd64\egg\flask\__main__.py to __main__.cpython-38.pyc
! K) [3 f1 t7 w+ Bcreating build\bdist.win-amd64\egg\EGG-INFO# K, B! Y6 ]% N8 \
copying src\Flask.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
* r% s) w/ y; y1 V- n& n7 _- xcopying src\Flask.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
! @8 r; }6 Y8 m' R/ tcopying src\Flask.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
$ w& @; V1 _# S4 y5 r. lcopying src\Flask.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
0 ]1 b7 V5 L5 N# L$ v$ {4 W* tcopying src\Flask.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
" w; g1 ?0 Q/ R; V% ^$ N6 y4 W/ O! _copying src\Flask.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
* f' @. F! |; K5 }zip_safe flag not set; analyzing archive contents..., b/ K: m3 ^/ f8 a( \
flask.__pycache__.app.cpython-38: module references __file__
@4 ]% _/ m2 u5 g; ]$ vflask.__pycache__.config.cpython-38: module references __file__
+ C* D2 O: f! n( J5 D- L$ {flask.__pycache__.helpers.cpython-38: module references __file__! C% r+ q; q& Z, w$ F7 K2 X `
creating 'dist\Flask-1.1.2-py3.8.egg' and adding 'build\bdist.win-amd64\egg' to it, ^* i5 s, N9 M* B
removing 'build\bdist.win-amd64\egg' (and everything under it), z" V7 R% { O4 n i& g
Processing Flask-1.1.2-py3.8.egg
- y5 a: H' k9 j* U& Q- L: u# _$ b* a" g! ^removing 'c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg' (and everything under it)
^! o2 z4 Y# r5 S! m icreating c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\Flask-1.1.2-py3.8.egg1 K; i! U+ K5 }3 E& T5 [. k
Extracting Flask-1.1.2-py3.8.egg to c:\users\admin\appdata\local\programs\python\python38\lib\site-packages q# j: |; a! q) F r
Flask 1.1.2 is already the active version in easy-install.pth: r# P5 K7 F' D% }2 j
Installing flask-script.py script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
2 z& y5 U# ]8 I/ i5 iInstalling flask.exe script to C:\Users\admin\AppData\Local\Programs\Python\Python38\Scripts
c; `6 J) h9 N1 n3 w
' d- C: r! U, q5 n/ Z* Q% R' |Installed c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\flask-1.1.2-py3.8.egg
5 M; V& c2 @) Y# kProcessing dependencies for Flask==1.1.25 |* X; Q0 J6 e: U6 Q- C( Z" I
Searching for click==8.1.76 D* T# i0 ?* X" E' X2 I; w8 w2 a
Best match: click 8.1.7/ V; x4 g& J5 X+ n
Processing click-8.1.7-py3.8.egg Q8 j) a& |. K' t9 M6 v2 b+ O
click 8.1.7 is already the active version in easy-install.pth
& A% Y; F3 h# k8 g% S) P6 S: b7 F3 y
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\click-8.1.7-py3.8.egg
$ n% M5 [ Q+ j% t, ?+ C1 g8 G6 YSearching for itsdangerous==2.2.0
5 {" N# [+ }7 y9 ABest match: itsdangerous 2.2.0* k/ j3 T) N+ u$ T4 G+ E
Processing itsdangerous-2.2.0-py3.8.egg
% Y7 k9 p: l2 R1 G6 L" iitsdangerous 2.2.0 is already the active version in easy-install.pth4 C: C% ?) @& R$ ]* f# Z
( D( g6 W* L2 _9 K" y9 }
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\itsdangerous-2.2.0-py3.8.egg( }1 X+ G0 j, U, m
Searching for jinja2==3.1.4
- ~, r& O u# x, K& P* G# EBest match: jinja2 3.1.4
; K7 ~* t, J. z( }/ D$ nProcessing jinja2-3.1.4-py3.8.egg
8 M: P) _1 j H( d/ s* K1 m, s. c; J3 @jinja2 3.1.4 is already the active version in easy-install.pth. _6 ~) m0 H% F$ s: C; x8 o
! q" }7 M0 s! Y' r/ U5 dUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\jinja2-3.1.4-py3.8.egg
' E) E+ F1 y) OSearching for werkzeug==3.0.3
- l' D2 |% ^1 D9 BBest match: werkzeug 3.0.3; j) K( @% V) f/ S: ?
Processing werkzeug-3.0.3-py3.8.egg! S$ t. K. X8 ^/ Q
werkzeug 3.0.3 is already the active version in easy-install.pth; P6 w0 O5 I2 D8 e6 ?
, N5 ?% Z, E* b$ i8 H) |. O
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\werkzeug-3.0.3-py3.8.egg7 S( B# O: `7 e; q" C$ U. c6 t8 V
Searching for colorama==0.4.6& E$ f1 q: E/ |& u/ |1 n" n
Best match: colorama 0.4.6
9 ^1 N- ~; T" G& o5 y$ i; C, SProcessing colorama-0.4.6-py3.8.egg
1 q/ o: t" S& h+ j0 fcolorama 0.4.6 is already the active version in easy-install.pth
' G( @6 T3 W( C. N) X) D" W3 t( l5 J' R2 j$ ^! @: [: m) P
Using c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\colorama-0.4.6-py3.8.egg
* x4 l( [$ {( KSearching for markupsafe==2.1.5
! ?# y* N) _0 n+ g! M" W8 @Best match: markupsafe 2.1.5 n$ ?4 a* K( y7 v W9 N) k
Processing markupsafe-2.1.5-py3.8.egg
1 E. f; j8 R. C& s+ A3 Imarkupsafe 2.1.5 is already the active version in easy-install.pth
4 q; R5 e: D3 O, e
+ A8 R% A v# T/ `- B+ ]8 K% DUsing c:\users\admin\appdata\local\programs\python\python38\lib\site-packages\markupsafe-2.1.5-py3.8.egg
$ h: W% O$ u- @- t% ]Finished processing dependencies for Flask==1.1.2
, E4 @; m) ]: V K5 j, F( a
+ G& {5 S' ?2 o9 S9 WC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list4 ?4 |1 ^) W A x; w' S
Package Version" P2 X$ x" y% M' o% j3 D
------------ -------
6 o+ C% i* f/ f6 A0 Lclick 8.1.7
9 X$ }" f1 b6 S) v Q; n( jcolorama 0.4.6
F( ?3 }% e) O+ Sflask 1.1.2" t, N3 y4 i) n$ o9 h8 S6 F
itsdangerous 2.2.03 ^+ v% J) |/ c2 |9 n3 I" f3 R
Jinja2 2.11.2
* k* b+ N6 Z2 _" pMarkupSafe 2.1.5
. G6 _* P2 z+ t1 Qpip 19.2.3
; _. u4 E" B9 ^, F5 G9 k bsetuptools 41.2.0
r R0 m. G. t) p- ^4 b+ F) g" Wwerkzeug 3.0.3
1 `) V3 e' z' L5 ZWARNING: You are using pip version 19.2.3, however version 24.0 is available.* o* D! X6 ]& E B5 w/ |6 D
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
- _1 S( W9 S% w2 ]; V# j
/ c/ O+ c5 E2 P. |2 s) T' oC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python
/ E* O5 P( J! K7 Z+ E, y$ L: YPython 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
8 x# H. I6 M: b* tType "help", "copyright", "credits" or "license" for more information.' z& P, U. i9 h0 m" J* D/ O. Y7 l
>>> import flask# a9 K; g: U# j3 ]3 o
Traceback (most recent call last):
( o" ]! c$ D0 g5 ^5 | a File "<stdin>", line 1, in <module>* _2 n0 L2 ]1 O8 c
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 {0 Y6 q! A% d8 P1 j- @& v from jinja2 import escape7 I# g. {* ]& H( ^/ _
File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\__init__.py", line 12, in <module>. f- \6 P6 A; j' ]/ e! S7 y
from .environment import Environment
6 \% v1 t( A o1 _/ k. E File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 25, in <module>
% P8 r) ?2 ^2 @0 V2 s8 k) i from .defaults import BLOCK_END_STRING
5 S# `8 d5 u5 d/ D. d' P File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\defaults.py", line 3, in <module>+ `: G0 @. o' }" [9 c/ B
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
& X! M' e5 t' S/ h3 M. q3 p File "C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\jinja2\filters.py", line 13, in <module>
+ _+ y# M5 [- L5 v+ e- A from markupsafe import soft_unicode7 b4 \8 N" V" U/ q3 M( {! M
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\admin\AppData\Local\Programs\Python\Python38\lib\site-packages\markupsafe\__init__.py)# T4 |3 @6 O, E% [' |
>>>" v! R$ t! B- L6 h
>>>
8 | O$ x; [) Y& n>>>5 a# [/ {1 Y: b0 X. k
>>> exit()
* m% g. l+ T/ Z' U5 f8 y$ ?) p7 N; F5 Z9 ?. r) J8 [+ Y; u
还是报错,版本太高,将版本。+ d) n1 l- D% P$ V/ h9 W# Z
0 `( g, ]6 r9 J+ A6 _, }6 ?- l% JC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
: j* e0 C/ @# P& s. s1 TPackage Version; \# c5 ?" i; c/ u) r3 z, C9 ~5 o( W
------------ -------6 u) o) y) B8 M
click 8.1.7
" [. B# R8 V1 _8 X( O( W* `4 `colorama 0.4.6
$ x0 R! C* c0 v4 g m% [6 Yflask 1.1.25 V [ T+ |* ?' f
itsdangerous 2.2.0
" K3 c/ u$ g5 |' R1 NJinja2 2.11.2
5 j4 U6 J. m" ^1 d: y) l2 `MarkupSafe 2.1.5
' P- d- {6 R f3 }& q. i% Cpip 19.2.3' G' ?! o7 F6 u3 v3 g
setuptools 41.2.0( O! i2 A, {/ w* N+ s
werkzeug 3.0.3
% O4 m; o9 t+ O' c& \3 A, HWARNING: You are using pip version 19.2.3, however version 24.0 is available.
9 v5 W) ]1 f8 P/ S+ ^. u) t! PYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
% j O$ |7 f# n$ B2 @8 L$ V+ l( b0 z) q: U6 H/ [# v, |
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"( {4 N6 k% S6 w% ^' E, i r4 }5 Q& x
Collecting MarkupSafe==1.1.19 p: I, t+ |9 i, i* U% V$ N+ b [' `
Downloading https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
6 }" B' E0 W3 a" ZERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.
& c. k6 v2 j* wInstalling collected packages: MarkupSafe
2 L7 Z5 h+ B. Q4 r, [4 T' D4 kSuccessfully installed MarkupSafe-2.1.5
' x' \2 n& h, e* I u; j- sWARNING: You are using pip version 19.2.3, however version 24.0 is available.
/ A8 u# T( B! h, t- T# HYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
' O: o1 U, ^: Z$ b' n5 K" s+ D/ i/ }) x& g
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1" R5 J- G* E5 j+ M* t, i1 c
Collecting MarkupSafe==1.1.10 R( \0 }" }4 G) L
Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
' j. f9 a8 u, sERROR: werkzeug 3.0.3 has requirement MarkupSafe>=2.1.1, but you'll have markupsafe 1.1.1 which is incompatible.7 q/ u8 H3 B/ ^; ~5 z
Installing collected packages: MarkupSafe7 v$ S! ]# Z6 n6 X
Successfully installed MarkupSafe-2.1.5" |& }6 u0 [1 w1 ^% y
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
0 x$ ^: W' L: q" s. R) V8 D- R( E/ \You should consider upgrading via the 'python -m pip install --upgrade pip' command.
( i& |: s* u* Y
5 Z+ Y& _4 [ m* F5 ?: UC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "werkzeug==2.0.0"# i. p' b( a0 f9 a# x% l, @
Collecting werkzeug==2.0.0
, L1 l$ n, j& a1 x) c+ u" m3 r Downloading https://files.pythonhosted.org/p ... .0-py3-none-any.whl (288kB) F* i& x9 J( R" |: D/ V! |
|████████████████████████████████| 296kB 656kB/s0 A& [2 O, E( I
Installing collected packages: werkzeug8 J2 K$ G* n. B' U* K
Successfully installed werkzeug-2.0.0) ^' v9 i% C+ U& E4 [/ v, X% @6 c
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
0 Q/ N1 b3 L( ^8 \. h. a0 bYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
. ?' H v4 A3 n5 u& b
3 N3 a0 K4 z$ R; a" OC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "MarkupSafe==1.1.1"
0 w. J8 \+ J2 Y- n) pCollecting MarkupSafe==1.1.1* q7 ~" f, b: M4 U$ B( T$ R" w
Using cached https://files.pythonhosted.org/p ... -cp38-win_amd64.whl
; o) D! G3 F4 r" U3 s/ JInstalling collected packages: MarkupSafe
3 O$ E+ k3 m" h2 f1 RSuccessfully installed MarkupSafe-2.1.5
v- h- d9 c% n2 e- D: i4 eWARNING: You are using pip version 19.2.3, however version 24.0 is available.
$ `2 [; t* J$ c; a; ZYou should consider upgrading via the 'python -m pip install --upgrade pip' command.
' q4 S' E- w* C# m. J
& B8 N0 |! i/ Z5 Z0 _C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip list
2 a0 v/ d n; f1 v MPackage Version
$ @* r5 ]& y6 t------------ -------4 L0 ~6 n; i* @. ]) n9 r
click 8.1.7
: I$ ~( Q! c' _& }8 N, D q+ scolorama 0.4.6
4 H8 S' v' E4 t+ s2 m( vflask 1.1.2
# G: ]6 E! K v7 U' l* Sitsdangerous 2.2.0
3 B+ k' L' O) v% ]5 hJinja2 2.11.2. p+ X' s1 M( t* V* C: H
MarkupSafe 2.1.5
1 ~# ^. M$ Q+ t v+ ^: \pip 19.2.38 R, E9 z( T5 H0 j. b: e2 `
setuptools 41.2.0
2 _$ z) ~% u; ~) y. VWerkzeug 2.0.08 v8 @* r1 b* e- d4 y6 u
WARNING: You are using pip version 19.2.3, however version 24.0 is available.
* f& i. z; `( s0 y8 n& n7 NYou should consider upgrading via the 'python -m pip install --upgrade pip' command.# M/ K( c0 b$ D( l- l8 m
* x% r% B" y6 y
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python8 C4 y/ {' V' t1 z. v1 I% Q* N2 C
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win32
( t/ M, }% K5 s" y' sType "help", "copyright", "credits" or "license" for more information.8 D/ p, |$ T& R6 g$ y3 [
>>> import flask" a! q) B' J2 T/ q3 c9 r
Traceback (most recent call last):( k# e* f) e C% t
File "<stdin>", line 1, in <module>8 h0 R. T* R# 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>
- D3 H' }: e3 i8 o! |3 P from . import json
# M& G; q1 Y8 U; O* y8 k# ^) H 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>
$ ]$ m( _7 e& G, t" p; H' A from itsdangerous import json as _json/ ?" O1 X& e, y9 e0 }
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)
5 a% g1 d9 a& n4 y- n" F>>> flask.__version__ f: {# C. x! ~2 w/ ?( |: k/ t
Traceback (most recent call last):
: Z4 A8 z$ ^5 x- I File "<stdin>", line 1, in <module>
/ w& W2 p& Y5 k# TNameError: name 'flask' is not defined- ]2 ~+ V5 ?* N; W, _: h
>>> exit(). P1 d6 ]9 {5 v
& ~8 m R7 j7 \6 k
* e6 ^+ K( j1 \( s* Z9 X: ?0 P再次报错,说明版本依然高:9 Z( K A" I' E2 O7 K, a8 C5 H
降itsdangerous版本:) ~4 ]7 B( g" ]
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.0.0"
! @6 M7 c- k4 tCollecting itsdangerous==1.0.01 F5 x7 \% ^* ^
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)2 h% R6 [& J' V4 d* C! M3 L2 R
ERROR: No matching distribution found for itsdangerous==1.0.0! Z5 z" a/ y9 X6 w% T! E* ]
WARNING: You are using pip version 19.2.3, however version 24.0 is available.+ |- o/ F$ \- _ S2 z5 ^6 X7 G
You should consider upgrading via the 'python -m pip install --upgrade pip' command." N& [& d6 G3 Y' j$ y5 B) `& W
2 h. u2 p* Z: p- l# X" [
C:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>pip install -I "itsdangerous==1.1.0"
7 j) H. |4 X0 n: C5 MCollecting itsdangerous==1.1.0* s7 \. Q0 N5 K7 m+ o
Downloading https://files.pythonhosted.org/p ... y2.py3-none-any.whl8 X' ~' e/ T! V/ N+ D9 _: G
Installing collected packages: itsdangerous
7 d' z4 i4 D9 a& O7 N0 Y( _Successfully installed itsdangerous-1.1.0
' ~+ J/ D0 p a* M6 XWARNING: You are using pip version 19.2.3, however version 24.0 is available.. T9 i& g8 q$ H4 V- u+ z
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
& ^* y* v2 H0 f/ A c8 M& d0 W6 F/ M9 `: r6 m& s# @, p: S
再次验证:
9 |1 X# K A$ p5 O6 LC:\Users\admin\Desktop\python flask框架开发\Flask-1.1.2\Flask-1.1.2>python7 Q( ]1 g2 ?; m6 `: m1 Y
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] on win325 n2 J+ R: `1 x' \( A- k- n% O
Type "help", "copyright", "credits" or "license" for more information.
0 u/ L5 g- Q/ P0 c>>> import flask0 G. q# k! D5 _ X1 j
>>> flask.__version__
* F: ~0 P. b2 n" E. k, a) r'1.1.2'5 O- l; U! S( t
>>>
1 r# H' B, G$ b+ V问题解决。1 i: v) s- T9 _6 J
|
|