How to install python m2crypto lib on mac

  1. install Homebrew https://brew.sh/
  2. execute the following command:
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

This article is originally created by tooli.top. Please indicate the source when reprinting : https://www.tooli.top/posts/mac_m2crypto

Posted on 2022-03-25 Mail to author