安装M2Crypto
项目上有依赖问题,requirement.txt. 使用 pip -r requirement 的方式去安装。发现其中M2Crypto 一直安装不上。对这种问题我最为头疼。
- 碰到个别出问题一般先单独处理。先单独安装M2Crypto,再安装整个requirement。
安装相应的包
google 大法好:
直接google
mac m2crypto 安装失败
得到这这一篇
http://www.iops.cc/install-m2crypto-failed-with-mac-os-x/
意思是安装一个swig 组件,然后安装低版本的M2Crypto。
pip uninstall m2crypto
brew uninstall swig --force
# Install swig 3.0.4 and compile m2crypto
brew update
brew search swig
brew install homebrew/versions/swig304
brew link homebrew/versions/swig304
pip install m2crypto
在我本机上执行
brew install homebrew/versions/swig304
brew link homebrew/versions/swig304
是会报错的
于是
brew install swig@3.04