열정/프로그래밍
[Error] Ubuntu python 없음 에러
lime9
2024. 7. 3. 16:08
python --version
위 명령을 치면 python이 없다고 뜨지만
python3 --version
위 명령에서는 설치된 Python 버전이 출력되는 경우에 대한 수정 과정이다.
Python과 Python 3을 함께 사용해주기 위해서는 아래의 명령을 치면 된다.
sudo apt install python-is-python3
그러면 python --version의 명령어에도 적당한 python 버전을 출력해준다.