This post will help you to install Python3.6.0 latest version on Ubuntu or Linuxmint or Debian operating system. The following commands can download and install python in your system.


Before you going to install the programming language install prerequisites for Python,

$ sudo apt-get install build-essential checkinstall

$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Download : 

Download the latest version of python using wget command and extract it.

$ sudo wget

$ sudo tar xf Python-3.6.0.tgz 

$ sudo cd Python-3.6.0

Installations : 

Then, run the commands to configure  and install,

$sudo  ./configure 

$ sudo make

$ sudo make install

If you use make altinstall command to  prevent replacing the default python binary file /usr/bin/python.
$ sudo make altinstall 

Check your python version using below command,

$ python3.6 -V 

or using the python script check the version.