【问题标题】:Unable to install M2Crypto package无法安装 M2Crypto 包
【发布时间】:2015-04-04 23:46:16
【问题描述】:

我正在使用安装了 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,但对我没有帮助)。

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

【问题讨论】:

标签: python python-2.7 openssl pip m2crypto


【解决方案1】:

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

xcode-select --install

这解决了我的问题。

【讨论】:

    猜你喜欢
    • 2016-02-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-02
    • 1970-01-01
    相关资源
    最近更新 更多