简体   繁体   English

python setup.py egg_info失败,错误代码为1

[英]python setup.py egg_info failed with error code 1

I'm running Ubuntu 17.04 (fresh install) and already installed pip. 我正在运行Ubuntu 17.04(全新安装),并且已经安装了pip。 However, when I try to install anything I get this: 但是,当我尝试安装任何东西时,我得到以下信息:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-kBfUEp/kivy/ 命令“ python setup.py egg_info”在/ tmp / pip-build-kBfUEp / kivy /中失败,错误代码为1

Depending on what I'm installing, I get the same thing but slighty different. 根据安装的内容,我得到的是相同的东西,但略有不同。 For example: 例如:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zqj5Ka/pypiwin32/ 命令“ python setup.py egg_info”在/ tmp / pip-build-zqj5Ka / pypiwin32 /中失败,错误代码为1

I've tried everything and I have absolute no idea how to solve this. 我已经尝试了一切,但我完全不知道如何解决这个问题。

Thanks. 谢谢。

I've had the same error, I used the following code to get out of this error: (I was working on centOS 7) 我遇到了同样的错误,我使用以下代码摆脱了该错误:(我在centOS 7上工作)

1) sudo yum install MySQL-devel 1)sudo yum安装MySQL-devel

2) sudo yum install openssl - devel 2)sudo yum install openssl-开发

3) sudo yum install python-devel 3)sudo yum安装python-devel

I hope this works for you. 希望这对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM