터미널 해당 폴더에서 python을 실행 할려고 할 경우 bash: python: command not found 발생
해결법1:
alias 등록
bagchan-igdeMacBook-Pro:~ piaocanyi$ echo alias python='python3' >> ~/.bashrc
bagchan-igdeMacBook-Pro:~ piaocanyi$ source ~/.bashrc
bagchan-igdeMacBook-Pro:~ piaocanyi$ python -V
Python 3.11.2
python 함수 적용성공!
해결법2:
심볼릭링크 생성
참고: https://askubuntu.com/questions/1144446/python-installed-in-ubuntu-but-python-command-not-found
python installed in ubuntu but python command not found
I have installed python 2.7 and python 3.7 in my ubuntu 18.04 but when i type python it shows Command 'python' not found, but can be installed with: sudo apt install python3 sudo...
askubuntu.com