Mac安装cryptography找不到openssl/opensslv.h

https://tutorials.technology/solved_errors/1-OSX-openssl_opensslv_h-file-not-found.html

方案一
brew install openssl
env LDFLAGS="-L(brew --prefix openssl)/include" pip install cryptography

方案二
Check with the openssl include path with brew --prefix openssl)/include if it exists, you can try to execute:
cd /usr/local/include
ln -s ../opt/openssl/include/openssl .

你可能感兴趣的:(Mac安装cryptography找不到openssl/opensslv.h)