Ubuntu下安装Python主要有以下几种方法:
sudo apt update
sudo apt install python3
python3.x --version
pyenv install
pyenv global
pyenv local