mac install m2Crypto
error
SWIG/_m2crypto.i:43: Error: Unable to find ‘openssl/opensslv.h‘
SWIG/_m2crypto.i:49: Error: Unable to find ‘openssl/safestack.h‘
SWIG/_evp.i:12: Error: Unable to find ‘openssl/opensslconf.h‘
SWIG/_rc4.i:5: 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
solution
brew install openssl
brew install swig
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" SWIG_FEATURES="-cpperraswarn -includeall -I$(brew --prefix openssl)/include" pip install m2crypto
原文地址:https://www.cnblogs.com/fzw-/p/8280900.html
时间: 2024-10-03 08:13:12