pip install cryptography==2.9.2
报错
build/temp.macosx-15.3-arm64-2.7/_openssl.c:575:10: fatal error: 'openssl/opensslv.h' file not found
尝试导出
export CPPFLAGS=-I/opt/homebrew/Cellar/openssl@3/3.4.0/include
export LDFLAGS=-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib
换了个错
error: call to undeclared function 'ERR_GET_FUNC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
应该是版本兼容的问题,下载低版本的openssl安装
wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz
tar -zxf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w
./config
make
sudo make install
# 重新安装就行了
pip install cryptography==2.9.2
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。