Installing M2Crypto on Windows

陌路散爱 提交于 2019-12-07 17:10:50

问题


I am trying to install M2Crypto on a Windows 7 machine using easy_install. However, I get the following error:

SWIG_m2crypto.i(31) : Error: Unable to find 'openssl\opensslv.h'
SWIG_m2crypto.i(45) : Error: Unable to find 'openssl\safestack.h'
SWIG_evp.i(12) : Error: Unable to find 'openssl\opensslconf.h'
SWIG_ec.i(7) : Error: Unable to find 'openssl\opensslconf.h'
error: Setup script exited with error: command 'swig.exe' failed with exit status 1

Any advice?

i tried installing openssl for windows.


回答1:


There is a Windows Installer in the M2Crypto page.

Unable to install using easy_install on Windows.




回答2:


Install this M2Crypto binary for Windows 32 bit, Python 2.7

then open package manager and type:

pypm install M2Crypto

(NOTE: Active Python 2.7.6 64 does not work here. Reason unknown.)



来源:https://stackoverflow.com/questions/9078493/installing-m2crypto-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!