[英]error: Apple Arm64 ABI requires ffi_prep_cif_var
I have updated my Intel mac to Big Sur v11.0.1
and have a failing dependancy on one of my work projects.我已将我的 Intel mac 更新到 Big Sur
v11.0.1
并且对我的一个工作项目的依赖失败。 I do not use python so am unsure on how to progress with this bug.我不使用 python,所以不确定如何处理这个错误。 All of my other pip installs worked without troubles.
我所有其他 pip 安装都没有问题。
So when I run pip3 install pyOpenSSL
, it fails on Using cached cryptography-3.2.1.tar.gz
with the error:因此,当我运行
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
I have seen a few issues in the repos such as this issue and this issue , but as I don't use python or pip often I am not sure what the root bug is or how to fix.我在 repos 中看到了一些问题,例如 this issue和 this issue ,但是由于我经常不使用 python 或 pip,我不确定根本错误是什么或如何修复。
Any suggestions or insights would be greatly appreciated.任何建议或见解将不胜感激。
To unblock this bug, I have installed python 3.9
using the steps from the offical docs .为了解除这个错误,我使用官方文档中的步骤安装了 python
3.9
。 In my project I then ran the commands.在我的项目中,我然后运行了命令。
# delete my venv folder first
python3.9 -m venv venv
pip install -r requirements.txt
All of the requirements (including pyOpenSSL) are now installing and working as expected.所有要求(包括 pyOpenSSL)现在都按预期安装和工作。
I still an unable to get this working in python 3.8
, so upgraded to 3.9
.我仍然无法在 python
3.8
,所以升级到3.9
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.