M1芯片下安装包报错的暂时性解决方案
Open
documentation
- Dominant language
- Python
- Stars
- 36.9k
- Forks
- 5.2k
- PR merge metrics
- No merged PRs in 30d
Description
本人设备m1 macbookair python3.9
在使用pip安装包时疯狂报错,通过其他方法安装完运行时报错的部分信息有“have:arm need:x86_64"。怀疑与arm兼容性有关。
解决方法:
1.安装x86版本的包使用rosetta2运行
在所需安装包命令前加上arch -x86_64
如arch -x86_64 pip install -r requirements.txt
最后启动时使用arch -x86_64 python demo_toolbox.py
或
2.安装windows虚拟机
~-~pd17真香
Contributor guide
No contributing guide indexed for this repository
Research direction
The report concerns pip installation and runtime errors on an M1 Mac with Python 3.9, including an arm versus x86_64 mismatch. Start by reproducing the listed requirements.txt and demo_toolbox.py commands; done would require confirming and documenting whether the Rosetta-based commands resolve the reported errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100