使用以下命令
sudo add-apt-repository ppa:jonathonf/python-3.7
sudo apt update
sudo apt install python3.7
过程中可能出现
没有 add-apt-repository这个命令
使用
sudo apt-get install python-software-properties
sudo apt-get update
sudo apt install software-properties-common
sudo apt-get update
然后使用python3.7进入最新版本