n Ubuntu 16.04 open the terminal and type:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.7
Alternatively you can also install Python3.8 in Ubuntu 16.04 with the following commands:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.8
To show the Python 3.7 version run the following command:
python3.7 -V
To start the Python 3.7 interpreter run the following command:
python3.7
To exit the Python 3.x interpreter run the following command:
exit
本文介绍如何在Ubuntu16.04系统中安装Python 3.7和3.8版本。通过添加dead snakes PPA源并使用apt命令进行更新和安装,读者可以轻松地完成Python版本的升级。文中还提供了验证安装版本及启动Python解释器的方法。
495

被折叠的 条评论
为什么被折叠?



