无法从python 3.5.2升级到3.6

时间:2017-05-03 18:57:08

标签: python linux python-3.x mint

我正在运行Linux Mint 18.1

发行版已经预装了python 2.7和python 3.5.2。

我想要做的是将python 3.5.2升级到3.6或3.6.1

我在命令行上尝试了这个: sudo apt-get upgrade python3

我得到:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3 is already the newest version (3.5.1-3).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

如何将python升级到3.6或3.6.1?

1 个答案:

答案 0 :(得分:6)

指向ppa,更新并安装:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6