Python:setup.py egg_info 失败,错误代码为 1
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49985465/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Python: setup.py egg_info failed with error code 1
提问by TMoraes
I already updated my Python 2.7.x to 3.6 and still getting this message when I try to install any package. Examples: Flask, Kivy..
我已经将 Python 2.7.x 更新到 3.6,但在尝试安装任何软件包时仍然收到此消息。示例:Flask、Kivy ..
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Dev\AppData\Local\Temp\pip-install-1_cikdf6\itsdangerous\
命令“python setup.py egg_info”在 C:\Users\Dev\AppData\Local\Temp\pip-install-1_cikdf6\itsdangerous\ 中失败,错误代码为 1
System Information:
Windows 10
Python 3.6.5
pip 10.0.1
setuptools 39.0.1
wheel 0.31.0
Command to install: python -m pip install 'package-name'
running in Administrator privilege
安装命令:python -m pip install 'package-name'
以管理员权限运行
UPDATE
更新
After running pip install ez_setup
I waited for more than 30 min and it gets blinking a white space, like it's waiting finish something.
运行后,pip install ez_setup
我等了 30 多分钟,它闪烁着一个白色的空间,就像在等待完成某事一样。
回答by TMoraes
make sure it's up to date
确保它是最新的
pip install --upgrade setuptools
make sure module ez_setup isn't missing
确保模块 ez_setup 没有丢失
pip install ez_setup
then try this
然后试试这个
pip install unroll
if it's still not working try this
如果它仍然不起作用试试这个
easy_install -U setuptools
and then
进而
pip install unroll
回答by struggle6688
I encountered a similar problem when installing suds. I solved it by first executing 'pip install client'.
我在安装 suds 时遇到了类似的问题。我通过首先执行“pip install client”来解决它。
回答by JenyaKh
For me, the problem was solved with updating the pip itself:
对我来说,问题是通过更新 pip 本身解决的:
# X is the required Python number, e.g. 2 or 3 or 2.7 or 3.5 or 3.6, etc.
sudo pythonX -m pip install --upgrade pip