Post

MacOS (m1, m2) python3 (3.7) x86_64 brew 설치 오류

목차


개요

brew로 파이썬 3.7 버전을 설치하려고 하니 오류가 났다.

1
2
3
brew install python@3.7
python@3.7: The x86_64 architecture is required for this software.
Error: python@3.7: An unsatisfied requirement failed this build.

해결방법

그대로 따라한다.

1
2
3
softwareupdate --install-rosetta
# brew x86 version install
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

ibrew로 x86 brew를 보다 쉽게 사용하게 한다. .zshrc, .bashrc에다 넣어주면 되겠다.

1
alias ibrew="arch -x86_64 /usr/local/bin/brew"
1
ibrew install python@3.7
This post is licensed under CC BY 4.0 by the author.