[英]Python: setup.py egg_info failed with error code 1
I already updated my Python 2.7.x to 3.6 and still getting this message when I try to install any package.我已经将 Python 2.7.x 更新到 3.6,但在尝试安装任何软件包时仍然收到此消息。 Examples: Flask, Kivy..示例: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'
以管理员权限运行
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 多分钟,它开始闪烁一个空白区域,就像在等待完成某些事情一样。
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
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
I encountered a similar problem when installing suds.我在安装 suds 时遇到了类似的问题。 I solved it by first executing 'pip install client'.我通过首先执行“pip install client”来解决它。
I was confused by this problem for many times.But I found it work recently when I see the pyinstaller releases for https://github.com/pyinstaller/pyinstaller/releases .我被这个问题搞糊涂了很多次。但我最近在看到https://github.com/pyinstaller/pyinstaller/releases的 pyinstaller 版本时发现它有效。
curl https://bootstrap.pypa.io/pip/3.4/get-pip.py -O get-pip.py
after that you can之后你可以
python get-pip.py
pip install pyinstaller==3.0
and after that you would use之后你会使用
pyinstaller [args] <name>
to compile your python code in 32-bits system like Windows XP在 Windows XP 等 32 位系统中编译你的 python 代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.