python使用pip安装m2crypto出现了报错 10
Collectingm2cryptoUsingcachedM2Crypto-0.22.5.tar.gzInstallingcollectedpackages:m2cryp...
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 展开
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 展开
6个回答
2017-09-07 · 知道合伙人互联网行家
关注
展开全部
python使用pip安装m2crypto出现了报错
https //www douban com/note/504845291/
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
更多追问追答
追问
不是win的,是linux的
追答
Linux上没怎么用,不过个人感觉linux上应该更方便。google找找。good luck!
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
试试加sudo或者su加权限执行一下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
pip install --egg M2CryptoWin64
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询