Error installing M2Crypto on Windows

I am trying to install M2Crypto on Python26 on Windows, but I am getting the following error.

error : command "swig.exe" failed: no such file or directory

This error occurs when using the "Easy Install" or "PIP Install" command. Runs the log:

running build

running build_py

running build_ext

building 'M2Crypto extension .__ m2crypto'

swigging SWIG / _m2crypto.i for 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: there is no such file or directory

Any help?

+4
source share
2 answers

Put this in the response format:

You can try installing the binary assembly from http://chandlerproject.org/Projects/MeTooCrypto

from the mata comment which resolved the issue with OP

0
source

This worked for me: (using winpython2.7)

pip install M2CryptoWin32 

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

+1
source

Source: https://habr.com/ru/post/1489791/


All Articles