简体   繁体   English

加密错误,Apple M1 处理器上的 cffi

[英]Error with cryptography, cffi on Apple M1 processor

My system: Apple M1 Max, Ventura 13.0.1我的系统:Apple M1 Max,Ventura 13.0.1

Python 3.8.15 Pip 22.3.1 Python 3.8.15 Pip 22.3.1

Trying to install project, by running pip install -r requirements.txt requirements.txt contains: https://privatebin.net/?a124b74f822ae43b#HxpLMnYwSz5hKqvv129A5Qpq4n3WsnYRW8JiJntXLVZN尝试安装项目,通过运行pip install -r requirements.txt requirements.txt包含: https://privatebin.net/?a124b74f822ae43b#HxpLMnYwSz5hKqvv129A5Qpq4n3WsnYRW8JiJntXLVZN

Here's the error output I get:这是我得到的错误 output:

Building wheels for collected packages: cffi, numpy, pillow, reportlab
ERROR: Failed building wheel for cffi

Building wheel for pillow (setup.py) ... error
  error: subprocess-exited-with-error

Failed to build cffi numpy pillow reportlab
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects

Full output: https://privatebin.net/?99bd0ca11b7969e0#Bg6rjoznhdzekjPD82G5Myou1m5kHjPtaxhrZQUJxdSm完整 output: https://privatebin.net/?99bd0ca11b7969e0#Bg6rjoznhdzekjPD82G5Myou1m5kHjPtaxhrZQUJxdSm

I would be very grateful for any help!如果有任何帮助,我将不胜感激!

I tried upgrading pip, installing pillow, cryptography, cffi, numpy manually.我尝试升级 pip,手动安装 pillow、cryptography、cffi、numpy。 Re-installed project and recreated venv a couple of times.重新安装项目并重新创建 venv 几次。

Sharing my way of resolving.分享我的解决方法。 Delete the system/delete the user on your Mac and first thing first, install Rosetta 2. After it, run your Terminal in Rosetta mode and install Python + all the requirements using the Terminal in Rosetta mode.删除系统/删除 Mac 上的用户,首先安装 Rosetta 2。之后,在 Rosetta 模式下运行终端并安装 Python + 使用终端在 Rosetta 模式下的所有要求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM