无法安装M2Crypto包

时间:2015-02-05 07:39:34

标签: python python-2.7 openssl pip m2crypto

我正在使用安装了Python 2.7的Win7 64位机器。我已经安装了swigwin 3.0.5。当我做“pip install M2Crypto”时,我收到了以下错误:

SWIG\_m2crypto.i(30) : Error: Unable to find 'openssl\opensslv.h'

SWIG\_m2crypto.i(33) : 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'

在某些链接中,我发现建议安装openssl-dev。但我找不到Windows的等效包(pip install openssl-dev不起作用,我已经完成了pip install pyOpenSSL,这对我没用)。

在此问题上提前感谢您的帮助。

1 个答案:

答案 0 :(得分:0)

不确定您的操作系统是什么。但要解决MAC OS X Yosemite上的问题,您需要在终端中使用此命令重新初始化xcode命令行工具。

xcode-select --install

这解决了我的问题。

相关问题