通过 pip 安装程序安装 M2Crypto 的问题

问题描述 投票:0回答:1

我尝试在 CentOS 7 服务器上安装 M2Crypto,但收到一条错误消息,找不到文件“pip-egg-info/M2Crypto.egg-info/SOURCES.txt”。目前我正在运行 Python 版本 2.7.5 和 pip 版本 18。

[root@Server tmp]# pip install m2crypto
Collecting m2crypto
  Using cached https://files.pythonhosted.org/packages/41/50/7d85dc99b1c4f29eca83873d851ec29a8e484a66b31351e62e30be9db7d1/M2Crypto-0.30.1.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/M2Crypto.egg-info
    writing requirements to pip-egg-info/M2Crypto.egg-info/requires.txt
    writing pip-egg-info/M2Crypto.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/M2Crypto.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/M2Crypto.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/M2Crypto.egg-info/SOURCES.txt'
    error: No such file or directory

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-KW7GOG/m2crypto/
[root@Server tmp]#

我尝试更新 pip 安装程序、setuptools 和wheel,但这并没有解决问题。我已经使用“yum install m2crypto”安装了 M2Crypto,但版本(我相信是 0.21)没有运行脚本所需的密码。任何解决此问题的帮助都会很棒。

python pip centos7 m2crypto
1个回答
0
投票

在安装 M2Crypto 之前,您可能需要安装多个软件包。我正在使用 Python 3.6。

yum install -y gcc swig openssl-devel python36 python36-devel
© www.soinside.com 2019 - 2024. All rights reserved.