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
Posted on 2022-03-25