gpt4 book ai didi

python-3.x - 安装python-flask会显示错误[python setup.py egg_info失败,错误代码为1]

转载 作者:行者123 更新时间:2023-12-03 17:19:50 25 4
gpt4 key购买 nike

我是python框架“ flask”的初学者,我遵循此link进行安装和演示App(创建虚拟环境)。

我在Windows平台上使用python 3.3.2

 python virtualenv.py flask


上面的命令执行得很好,所有文件都正确下载,但是当我执行时

 pip install flask==0.9


它给我以下错误

 Downloading/unpacking flask==0.9
Downloading Flask-0.9.tar.gz (481kB): 481kB downloaded
Running setup.py egg_info for package flask
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "D:\Technologies\flaskpython\flask\build\flask\setup.py", line 62
print "Audit requires PyFlakes installed in your system."
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 16, in <module>

File "D:\Technologies\flaskpython\flask\build\flask\setup.py", line 62

print "Audit requires PyFlakes installed in your system."

^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in D:\Technologies\fla
skpython\flask\build\flask
Storing complete log in C:\Users\wa\pip\pip.log


请指导我正确安装

最佳答案

您有任何理由要专门安装0.9版吗?为什么不使用pip install flask,它将为Python 3.3.x安装最新的0.10.1及其依赖项?我尝试了一下,在virtualenv中运行良好,而安装0.9版给了我与您相同的错误。

HTH,菲尔

关于python-3.x - 安装python-flask会显示错误[python setup.py egg_info失败,错误代码为1],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18717377/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com