【发布时间】:2022-07-05 20:11:46
【问题描述】:
我正在尝试在装有运行 Monterey MacOS 的 ARM 芯片的 MacBook 上安装加密包。我发出的命令是
pip3 install cryptography --global-option=build_ext
--global-option="-L/opt/homebrew/Cellar/openssl@1.1/1.1.1m/lib/"
--global-option="-I/opt/homebrew/Cellar/openssl@1.1/1.1.1m/include"
我收到错误:
build/temp.macosx-10.14-arm64-3.8/_openssl.c:575:10:
fatal error: '***openssl/opensslv.h***' file not found
#include <openssl/opensslv.h>。我在/opt/homebrew/Cellar/openssl@1.1/1.1.1m/include/ 下肯定有那个文件,并且那个目录在我的路径中。请告诉我我做错了什么。
【问题讨论】:
标签: python-3.x openssl