easy_install M2Crypto failing on Windows platform

前端 未结 2 1070
感情败类
感情败类 2021-02-11 00:01

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

2条回答
  •  抹茶落季
    2021-02-11 00:46

    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:

    1. Download and install OpenSSL from Win32 OpenSSL
    2. Copy the lib and include folders to c:\pkg
    3. Check that swig.exe is available in your path
    4. Run easy_install M2Crypto

    Worked for me like a charm.

提交回复
热议问题