python-2.7 - 为什么我会收到 egg_info 错误?

标签 python-2.7 ubuntu pip mitmproxy

我正在尝试通过 pip 在 ubuntu 13.04 上安装 mitmproxy,但每次我遇到此错误时:“命令 python setup.py egg_info failed with error code 1 in temp/pip-build-lubuntu/cryptography storage complete log in/home/lubuntu/.pip/pip.log"
我已经通过 apt-get 安装了 python-pip、python-dev、libxml2-dev、libxslt1 和 libssl-dev。我的 pip 版本是 1.3.1,python 是 2.7。我检查了这个错误的所有相关答案,但没有人有帮助。我非常感谢您的指导和提前帮助。

最佳答案

我刚刚遇到这个问题,发现我缺少一些加密包的依赖项:

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 install mitmproxy 工作。希望有帮助!

关于python-2.7 - 为什么我会收到 egg_info 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22363752/

相关文章:

Python 类继承没有做我认为应该做的事情

python - 导入错误: module 'main' has no attribute '__main__' after doing pip -e

python - Scrapy安装报错pip和easy_install

python - 在 Windows 上使用 Pip 在全局环境而不是 virtualenv 中安装包

python - 如何在终端窗口中打印/显示 telnet session 的输出 (Python)

python - 使用 Python requests 模块下载并保存 PDF 文件

ubuntu - 无法使用 Snapcraft 创建快照

ruby - 在 ubuntu 上安装 mongo gem 时出错

php - 更新到 php8.0 时无法启动 PHP 8.0 FastCGI 进程

python - 基本线性预测示例