pip install m2crypto
生成以下的輸出:麻煩與OS PIP安裝m2crypto X/MacOS的
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
我已經運行:
brew install swig
+1真的很喜歡這種方法,我可以在遞歸依賴安裝腳本中使用它,它的工作方式就像一個魅力一樣。 – aorcsik
非常感謝,完美無瑕。 –
這太棒了 - 用於安裝非常感謝,非常感謝! – ghukill