简体   繁体   English

错误:Apple Arm64 ABI 需要 ffi_prep_cif_var

[英]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.

相关问题 Grpcio 在 arm64 Apple Silicon 上安装 Tensorflow 2.5 失败 - Grpcio fails installation for Tensorflow 2.5 on arm64 Apple Silicon 为 arm64 架构编译 python 模块 - Compile python modules for arm64 architecture 将此 ARM64 程序集转换为 Python? - Converting this ARM64 Assembly into Python? 迁移到 AWS Lambda 上的 arm64 显示错误:无法导入模块 'encryptor-lambda' - Migrate to arm64 on AWS Lambda show error: Unable to import module 'encryptor-lambda' 导入错误 confluent_kafka mach-o 文件,但是是不兼容的架构(有(arm64),需要(x86_64))) - import error confluent_kafka mach-o file, but is an incompatible architecture (have (arm64), need (x86_64))) 尝试在 Atom 中导入 numpy 时出现“不兼容的架构(有 &#39;arm64&#39;,需要 &#39;x86_64&#39;)”错误 - 'incompatible architecture (have 'arm64', need 'x86_64')' error when trying to import numpy in Atom 在ARM64 docker容器中编译typed-ast - Compiling typed-ast in ARM64 docker container 导入ctypes python模块时出错-RuntimeError:ffi_prep_closure失败,出现2 - Error importing ctypes python module - RuntimeError: ffi_prep_closure failed with 2 macOS Monterey Pycharm 测试运行错误:SystemError: ffi_prep_closure(): bad user_data - macOS Monterey Pycharm test runner error: SystemError: ffi_prep_closure(): bad user_data 在 arm64 上使用 numpy 和 Pandas 构建 docker 时出现问题 - Problem building docker with numpy and pandas over arm64
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM