MacOS (m1, m2) python3 (3.7) x86_64 brew 설치 오류
24 Mar 2023 | macOS brew python3
목차
개요
brew로 파이썬 3.7 버전을 설치하려고 하니 오류가 났다.
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.
해결방법
그대로 따라한다.
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에다 넣어주면 되겠다.
alias ibrew="arch -x86_64 /usr/local/bin/brew"
ibrew install python@3.7
Comments