Upgrade Python on Linux Mint

Package ManagementPython

Download the latest version you want to upgrade from python.org.. i.e. 3.x branch of 2.7.x branch

Extract on your system

$ cd Python-2.7.12
$ sudo ./configure
$ sudo make install

To replace the 2.7.xx version on your system use sudo make install, to keep the old version use sudo make altinstall.

To verify you have the latest verison installed, open a new terminal and enter:

$ python –version
Python 2.7.12

The altinstall method will allow to keep two 2.7x versions on your system.

Read more about altinstall here:

https://stackoverflow.com/questions/16018463/difference-in-details-between-make-install-and-make-altinstall#16018816

 

References:

http://tecadmin.net/install-python-2-7-on-ubuntu-and-linuxmint/#

https://stackoverflow.com/questions/36328733/upgrade-python-version-in-linux-mint