Created
May 2, 2017 10:12
-
-
Save andrisasuke/91eccace11366e626d14c5c249054e20 to your computer and use it in GitHub Desktop.
python install m2crypto on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> 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 |
_m2crypto.so' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
Any solution?
Worked for me (Intel Mac Ventura, openssl@3). I set the environment and to get the right Python I used python3 -m pip install m2crypto
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to make sure a real
gcc
(not/usr/bin/gcc
, which is clang) installed. Otherwise it usesclang
to build the package.