Error

[Error] python: command not found

HUR129 2022. 1. 13. 13:21

Ubuntu 20.04에서 쉘스크립트 파일을 실행할때

python: command not found으로 뜨면서 계속 문제가 생긴다.

 

example : 

 

                 ./do_get_vocab.sh: line 7: python: command not found

 

shell script에서

python3 version을 python으로 인식을 못해서 생기는 문제이고 (나의 경우)

해결방법은 python을 python3로 인식시켜주는 package download

 

sudo apt-get install python-is-python3

 

이면 해결된다

 

오늘도 감사합니다 전세계의 프로그래머들!

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