반응형
Programming/Trouble Shooting
-
Mac M1 :: python command not found error 해결하기Programming/Trouble Shooting 2022. 12. 28. 23:37
오늘은 python command not found error를 해결해보겠습니다 brew install python으로 설치를 다 완료했는데도 터미널에서 Python 명령어를 치면 해당 에러가 뜨는 경우가 있어요 주로 Python3를 설치했을 때 일어나는 현상인 것 같습니다. 그럴 때는 python 명령어 경로를 다시 설정해 주면 됩니다. 터미널을 열고 아래 명령어만 입력하면 해결이 됩니다. 명령어 입력 후에 꼭 터미널을 다시 열어주세요 ! echo "alias python=/opt/homebrew/bin/python3" >> ~/.zshrc