如何在 Ubuntu 18.04 上将 Python 更新到最新版本

Ahm*_*raf 46 updates xubuntu python 18.04

我现在默认安装的 Ubuntu 当前版本的 python 是 2.7rc1 ,
是否可以将其正式更新到最新版本(3.7.1)?

谢谢你 。

小智 52

Python 3.7.1 仍处于维护版本。

它仅可供 Windows 和 macOS 用户下载。一旦稳定版本发布,它就会在 Linux 存储库中可用。

对于 Windows 和 Mac 用户,请访问此 python.org URL

Linux用户:可以从终端下载3.7.0版本

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.7
Run Code Online (Sandbox Code Playgroud)

  • 只需将第二个命令更改为最新的稳定版本而不是 python3.7,目前为 3.8 (3认同)