I am attempting to install M2Crypto on a Windows XP platform. I have Python, easy_install and SWIG installed, but when I attempt to easy_install M2Crypto
I get the
Had a similar problem. After downloading the source package of M2Crypto and reading the INSTALL file I found the following:
Differences when installing on Windows
--------------------------------------
Before building from source, you need to install OpenSSL's include files,
import libraries and DLLs. By default setup.py assumes that OpenSSL include
files are in ``c:\pkg\openssl\include``, and the import libraries
in ``c:\pkg\openssl\lib``. As with other platforms, you can specify a different
OpenSSL location with --openssl option to build_ext command.
As jay stated in his answer you should try to build it from source. And I tried. The setup.py
does not recognize the --openssl
option. Looking at the output from the default setup.py
I realized that the search location was c:\pkg
and not c:\pkg\openssl
.
The solution:
lib
and include
folders to c:\pkg
swig.exe
is available in your patheasy_install M2Crypto
Worked for me like a charm.