【发布时间】:2021-02-28 04:16:01
【问题描述】:
我已将我的 Intel mac 更新为 Big Sur v11.0.1,并且对我的一个工作项目的依赖失败了。我不使用 python,所以不确定如何处理这个错误。我所有其他 pip 安装都没有问题。
所以当我运行pip3 install pyOpenSSL 时,它在Using cached cryptography-3.2.1.tar.gz 上失败并出现错误:
ERROR: Command errored out with exit status 1:
command: /<my-project>/venv/bin/python3 /<my-project>/venv/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/var/folders/gg/djb6q6054pxf6rzpjg516k9c0000gn/T/pip-build-env-bj2qm41h/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
#error Apple Arm64 ABI requires ffi_prep_cif_var
^
c/_cffi_backend.c:6304:9: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
if (ffi_prep_closure(closure, &cif_descr->cif,
^
/usr/local/Cellar/libffi/3.3/include/ffi.h:341:18: note: 'ffi_prep_closure' has been explicitly marked deprecated here
__attribute__((deprecated))
^
1 warning and 1 error generated.
error: command 'clang' failed with exit status 1
我在 repos 中看到了一些问题,例如 issue 和 issue,但由于我不经常使用 python 或 pip,我不确定根本错误是什么或如何修复。
任何建议或见解将不胜感激。
【问题讨论】:
标签: python pip pyopenssl python-cryptography