Cannot Upgrade from python 3.5.2 to 3.6

milouk picture milouk · May 3, 2017 · Viewed 12.8k times · Source

I am running Linux Mint 18.1

The distro has pre-installed python 2.7 and python 3.5.2 .

what i would like to do is to upgrade python 3.5.2 to 3.6 or 3.6.1

i have tried this on the command line: sudo apt-get upgrade python3

and i get :

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.

what should i do to upgrade python to 3.6 or 3.6.1 ?

Answer

Gregory picture Gregory · Apr 12, 2018

Just point the ppa, update and install:

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