I am gettin following error while installing python3.7 on MacBook air m1 2020. I run the following command:
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??
A Google search with the query python 3.7 mac m1 yields this article:
I have Rosetta2, Can I use brew x86 to install python 3.7 ?
Answer is YES, start from install brew x86 version aka
ibrewarch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"Add alias to rc file
alias ibrew="arch -x86_64 /usr/local/bin/brew"Install python 3.7 on M1 🎉🎉🎉
ibrew install python@3.7Now you can choose between
brewwhen you want to install ARM app oribrewwhen you want to install x86 app. Happy coding 😄