M2Crypto doesn't install in venv, or swig doesn't define __x86_64__ which breaks compiling against OpenSSL M2Crypto doesn't install in venv, or swig doesn't define __x86_64__ which breaks compiling against OpenSSL python python

M2Crypto doesn't install in venv, or swig doesn't define __x86_64__ which breaks compiling against OpenSSL


M2Crypto supplies a fedora_setup.sh script to handle the problems with Fedora/RL/CentOs releases, but pip, of course, doesn't know anything about it.

After the pip install fails, it leaves the downloaded stuff in the venv/build/M2Crypto directory. do this:

cd <path-to-your-venv>/venv/build/M2Cryptochmod u+x fedora_setup.sh./fedora_setup.sh build./fedora_setup.sh install

This has worked in my install process


You just don't have swig installed.

Try:

sudo yum install swig

And then:

sudo easy_install M2crypto


I did this and it works very well :

env SWIG_FEATURES="-cpperraswarn -includeall -I/usr/include/openssl" pip install M2Crypto

Of course you have to install swigg with sudo yum install swig before