How to Install latest version of Python3.6 on Ubuntu 16.04

Python is a very powerful programming language. It is easy to lean and very simple to understand syntax. It is very efficient scripting language, that is why it is very popular now days.

Python available across all platforms including Ubuntu Linux. It has two versions python2 and python3. The latest version of python3 is python 3.6. In Ubuntu 17.10 and Ubuntu 18.04 has pre – installed python 3.6. But In Ubuntu 16.04 python 3.5 is installed by default.

In order to install python 3.6 on Ubuntu 16.04 we need to use third party PPA.

Follow these steps to install python 3.6 on ubuntu 16.04

1.Open terminal ctrl+Alt+T and use following command.

sudo add-apt-repository ppa:jonathonf/python-3.6

 

install python 3

 

2.Check for updates if available

sudo apt-get update

3.Then install python 3.6 by using the following command

sudo apt-get install python3.6

 

check the version of python

 

4. Now, you have to make python3.6 for python3 not python 3.5. Use these two commands

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2
sudo update-alternatives --config python3

Then select python 3.6 Version. To check the python3 version, use command python3 -V

Note:If step 3 doesn’t works due to this bug, use this

sudo rm /usr/bin/python3

sudo ln -s python3.5 /usr/bin/python3

Share the article if you think this is helpful to you, if any suggestion or my article needs improvement please tell me by comments below. thanks.

How to install latest version of eclipse on ubuntu 18.04

You May Also Like

About the Author: Linux Hackr

I love to writing Linux blogs. I'll be very happy if you say something in comment box, because it's not just comment it is my motivation. Thank you !

1 Comment

  1. Thanks for sharing excellent informations. Your site is so cool. I am impressed by the details that you’ve on this website. It reveals how nicely you perceive this subject. Bookmarked this web page, will come back for more articles. You, my pal, ROCK! I found just the information I already searched everywhere and just could not come across. What a great site.

Leave a Reply