MacOS,  Python

mac python编译时提示 ‘openssl/opensslv.h’ file not found

前提:brew install openssl

在py编译命令后添加,

--global-option=build_ext --global-option="-L/usr/local/opt/openssl/lib" --global-option="-I/usr/local/opt/openssl/include"

留言