相关疑难解决方法(0)

pip 安装 m2crypto 错误

$sudo pip3 install m2crypto
Collecting m2crypto
  Using cached M2Crypto-0.26.0.tar.gz
Requirement already satisfied: typing in /usr/local/lib/python3.5/dist-packages (from m2crypto)
Installing collected packages: m2crypto
  Running setup.py install for m2crypto ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ejd_4lk_/m2crypto/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ecxgdei0-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    copying M2Crypto/BIO.py -> build/lib.linux-x86_64-3.5/M2Crypto
    copying M2Crypto/DH.py -> build/lib.linux-x86_64-3.5/M2Crypto
    copying M2Crypto/Rand.py -> build/lib.linux-x86_64-3.5/M2Crypto
    copying M2Crypto/ftpslib.py -> build/lib.linux-x86_64-3.5/M2Crypto
    copying M2Crypto/m2.py -> build/lib.linux-x86_64-3.5/M2Crypto
    copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-x86_64-3.5/M2Crypto
    copying M2Crypto/callback.py …
Run Code Online (Sandbox Code Playgroud)

python pip m2crypto python-3.x

8
推荐指数
3
解决办法
2万
查看次数

easy_install M2Crypto在Windows平台上失败

我试图在Windows XP平台上安装M2Crypto.我安装了Python,easy_install和SWIG,但是当我尝试easy_install M2Crypto获取以下内容时:

SWIG\_m2crypto.i(31) : Error: Unable to find 'openssl\opensslv.h'
SWIG\_m2crypto.i(45) : Error: Unable to find 'openssl\safestack.h'
SWIG\_evp.i(12) : Error: Unable to find 'openssl\opensslconf.h'
SWIG\_ec.i(7) : Error: Unable to find 'openssl\opensslconf.h'
error: Setup script exited with error: command 'swig.exe' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

我在别处读过人们建议的内容easy_install openssl-devel,但这只是告诉我没有找到包含该名称的软件包.该名称是否区分大小写(我尝试了各种排列而没有成功),或者该建议不适用于Windows?

我不是在寻找M2Crypto的替代品.我正在挑选一些使用它的现有代码,所以我需要让我的开发环境能够运行已经编写的代码.

windows openssl easy-install m2crypto

4
推荐指数
1
解决办法
4952
查看次数

标签 统计

m2crypto ×2

easy-install ×1

openssl ×1

pip ×1

python ×1

python-3.x ×1

windows ×1