Collecting m2crypto
Using cached M2Crypto-0.22.5.tar.gz
Installing collected packages: m2crypto
Running setup.py install for m2crypto
Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-QPBaeS/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xTg6CK-record/install-record.txt --single-version-externally-managed --compile:
cto
c
copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-x86_64-2.7/M2Crypto/PGP
running build_ext
building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/usr/local/python27/include/python2.7 -I/usr/include -includeall -modern -builtin -outdir build/lib.linux-x86_64-2.7/M2Crypto -D__x86_64__ -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
swig error : Unrecognized option -builtin
Use 'swig -help' for available options.
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-QPBaeS/m2crypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xTg6CK-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-QPBaeS/m2crypto
linux环境下的安装,直接使用pip 安装的。系统时centos6.7
windows 的可以试试https://github.com/saltstack/salt-windows-install/blob/master/deps/win32-py2.7/M2Crypto-0.21.1.win32-py2.7.msi。
python使用pip安装m2crypto出现了报错
https //www douban com/note/504845291/不是win的,是linux的
追答Linux上没怎么用,不过个人感觉linux上应该更方便。google找找。good luck!
追问找了蛮久,英文不好,google看不太懂。不过谢谢了
本回答被网友采纳