1 개요[ | ]
- -bash: python: command not found
- python installed in ubuntu but python command not found
Console
Copy
root@wsl:~# python -V
-bash: python: command not found
root@wsl:~# python3 -V
Python 3.9.2
2 방법1: alias 등록[ | ]
Console
Copy
root@wsl:~# echo alias python='python3' >> ~/.bashrc
root@wsl:~# source ~/.bashrc
Docker is running.
root@wsl:~# python -V
Python 3.9.2
3 방법2: 심볼릭링크 생성[ | ]
Console
Copy
root@wsl:~# which python3
/usr/bin/python3
root@wsl:~# ln -s /usr/bin/python3 /usr/bin/python
root@wsl:~# python -V
Python 3.9.2
4 같이 보기[ | ]
5 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- Python (25)
리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― …리눅스 Python 2.7 컴파일 설치 ― Jmnote리눅스 Python 2.7 컴파일 설치 ― ㅇㅇㅇ미운코딩새끼 ― 승호 도령미운코딩새끼 ― 불탄고등어미운코딩새끼 ― 김레이미운코딩새끼 ― 호박이미운코딩새끼 ― Junhg0211미운코딩새끼 ― 김왼손미운코딩새끼 ― 용딘이미운코딩새끼 ―Pinkcrimson
유기농냠냠파이썬 ― 호박유기농냠냠파이썬 ― 이에스유기농냠냠파이썬 ― 이승현파이썬 global ― Jmnote파이썬 global ― John Jeong파이썬 global ― Jmnote파이썬 global ― John Jeong파이썬 global ― John Jeong파이썬 global ― John Jeong파이썬 global ― Jmnote파이썬 global ― John Jeong