2014-03-12 63 views
1

我想通过点安装mitmproxy在Ubuntu 13.04,但每次我面对这个错误:“命令python setup.py egg_info失败,错误代码1在temp/pip-build-lubuntu /加密存储完整登录/ home /lubuntu/.pip/pip.log“ 我已经通过apt-get安装了python-pip,python-dev,libxml2-dev,libxslt1和libssl-dev。我的pip版本是1.3.1,python是2.7。我检查了这个错误的所有相关答案,但没有人有帮助。我非常感谢你的指导和提前帮助。为什么我会得到egg_info错误?

+0

在这里似乎没有足够的信息来弄清楚发生了什么事情 - 你能否从你的问题的文件路径中添加pip安装日志的相关部分。 – cortesi

回答

4

我只是在面临这个问题,并发现我失去了一对夫妇相依为加密包:

For Debian and Ubuntu, the following command will ensure that the required dependencies are installed:

$ sudo apt-get install build-essential libssl-dev libffi-dev python-dev

For Fedora and RHEL-derivatives, the following command will ensure that the required dependencies are installed:

$ sudo yum install gcc libffi-devel python-devel openssl-devel

(来源:https://cryptography.io/en/latest/installation/#building-cryptography-on-linux

我上最小CentOS6.5安装VM,发现我还需要:

的libxml2-devel的和的libxslt-devel的

完成后,PIP安装mitmproxy工作。希望有所帮助!