root@localhost# python -V
-bash: python: command not found
root@localhost# python3 -V
Python 3.9.2
방법1: alias 등록
root@localhost# echo alias python='python3' >> ~/.bashrc
root@localhost# source ~/.bashrc
Docker is running.
root@localhost# python -V
Python 3.9.2
방법2: 심볼릭링크 생성
root@localhost# which python3
/usr/bin/python3
root@localhost# ln -s /usr/bin/python3 /usr/bin/python
root@localhost# python -V
Python 3.9.2
...[더 보기]