gpt4 book ai didi

python - pip install openssl/aes.h 错误和 libxml/xmlversion.h 错误 (osx)

转载 作者:太空宇宙 更新时间:2023-11-03 15:03:58 25 4
gpt4 key购买 nike

我有一个“requirements.txt”文件,我 pip 安装它。并继续得到这些错误:

Cryptography_cffi_a269d620xd5c405b7.c:217:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>
^
1 error generated.
error: command 'clang' failed with exit status 1

还有这个错误:

fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error generated.
error: command 'clang' failed with exit status 1

尝试后https://github.com/pyca/cryptography/issues/2350

最佳答案

我做了两件事来解决这个问题。

brew link --force openssl

xcode-select --install

关于python - pip install openssl/aes.h 错误和 libxml/xmlversion.h 错误 (osx),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35021501/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com