相关疑难解决方法(0)

无法在OS X/macOS上使用pip安装m2crypto

pip install m2crypto
Run Code Online (Sandbox Code Playgroud)

生成以下输出:

building 'M2Crypto.__m2crypto' extension
swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -I/usr/include/openssl -includeall -modern -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
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'
error: command 'swig' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

我跑了:

brew install swig
Run Code Online (Sandbox Code Playgroud)

macos pip m2crypto osx-elcapitan macos-sierra

46
推荐指数
3
解决办法
2万
查看次数

标签 统计

m2crypto ×1

macos ×1

macos-sierra ×1

osx-elcapitan ×1

pip ×1