[英]installing python@3.7 MacBook Air m1 problem
I am gettin following error while installing python3.7 on MacBook air m1 2020. I run the following command:在 MacBook air m1 2020 上安装 python3.7 时出现以下错误。我运行以下命令:
brew install python@3.7
The following error is thrown:抛出以下错误:
python@3.7: The x86_64 architecture is required for this software.
Error: python@3.7: An unsatisfied requirement failed this build.
My question is that "how can I install python3.7 on MacBook Air m1 using brew??我的问题是“如何使用 brew 在 MacBook Air m1 上安装 python3.7?
A Google search with the query python 3.7 mac m1
yields this article :使用查询
python 3.7 mac m1
进行 Google 搜索会产生这篇文章:
I have Rosetta2, Can I use brew x86 to install python 3.7?
我有 Rosetta2,我可以使用 brew x86 安装 python 3.7 吗?
Answer is YES, start from install brew x86 version aka
ibrew
答案是肯定的,从安装 brew x86 version aka
ibrew
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Add alias to rc file
为rc文件添加别名
alias ibrew="arch -x86_64 /usr/local/bin/brew"
Install python 3.7 on M1
在 M1 上安装 python 3.7
ibrew install python@3.7
Now you can choose between
brew
when you want to install ARM app oribrew
when you want to install x86 app.现在,当您想要安装 ARM 应用程序时,您可以选择
brew
或当您想要安装ibrew
应用程序时选择 ibrew。 Happy coding快乐编码
the recipe found in在中找到的食谱
https://tech.gorilla.co/python-3-7-on-apple-silicon-de6a97c7f4d https://tech.gorilla.co/python-3-7-on-apple-silicon-de6a97c7f4d
works: :-)作品::-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.