python – 在Windows上安装时出现M2Crypto错误

我正在尝试在
Windows上的
Python26上安装M2Crypto,但我收到以下错误.

error: command ‘swig.exe’ failed: No such file or directory

使用“简易安装”或“PIP安装”命令都会发生此错误.按照日志:

running build

running build_py

running build_ext

building ‘M2Crypto.__m2crypto’ extension

swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c

swig.exe -python -IC:\Python26\include -IC:\Python26\PC
-Ic:\pkg\include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i

error: command ‘swig.exe’ failed: No such file or directory

任何帮助?

最佳答案 把它放在答案格式中:

您可以尝试从http://chandlerproject.org/Projects/MeTooCrypto安装二进制版本

来自mata的评论解决了OP的问题

点赞