「Ubuntu 21.10」Command ‘python’ not foundの対処方法

環境
OSバージョンの確認

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.10
DISTRIB_CODENAME=impish
DISTRIB_DESCRIPTION="Ubuntu 21.10"

エラーメッセージ

# python -m pip install --upgrade pip setuptools
Command 'python' not found, did you mean:
  command 'python3' from deb python3
  command 'python' from deb python-is-python3

解決方法
# sudo apt install python-is-python3

# python3 -V
Python 3.10.4
# python --version
Python 3.9.7

 

Ubuntu 21.10

Posted by arkgame