Question

I'm trying to install the M2Crypto on Python26 in Windows, but I am getting the below error.

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

This error occurs both using the "Easy Install" or "PIP Install" command. Follows the Log:

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

Any Help?

Was it helpful?

Solution 2

Putting this in answer format:

You could try to install a binary build from http://chandlerproject.org/Projects/MeTooCrypto

from mata's comment that resolved OP's issue

OTHER TIPS

This worked for me: (using winpython2.7)

pip install M2CryptoWin32

reference: https://github.com/dsoprea/M2CryptoWin32

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top