Do
$> brew install openssl
$> brew install swig
Now add these lines to your ~/.zshrc
file on Mac OS X
# this is very slow, see https://github.com/Homebrew/brew/issues/3327
# OPENSSL=$(brew --prefix openssl)
# this is much faster
# OPENSSL=$(dirname $(dirname $(which openssl)))
# hardcoding is fastest
OPENSSL=/usr/local/opt/[email protected]
export PATH="$OPENSSL/bin:$PATH"
export LDFLAGS="-L$OPENSSL/lib"
export CPPFLAGS="-I$OPENSSL/include"
export PKG_CONFIG_PATH="$OPENSSL/lib/pkgconfig"
export SWIG_FEATURES="-cpperraswarn -includeall -I$OPENSSL/include"
Then in a new terminal do
$> pip install m2crypto