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
内容来源于网络如有侵权请私信删除
你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!