This question already has an answer here:

I am using Ubuntu 16.04 which comes with python 2.7 and python 3.5 pre-installed. I am currently working on a project where it requires to install python 3.6 and some additional packages. I have searched the Internet but i couldn't manage to get the comprehensive tutorial steps where I could follow. Please help me. Thanks in advance...

marked as duplicate by Organic Marble, edwinksl, Zanna, user364819, Eric Carvalho Jun 18 '17 at 11:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

This question has been answered by @edwinksl here: https://askubuntu.com/a/865569

The 3.6 version of Python doesn't seem to have been added to the official repositories for Ubuntu 16.04 LTS. However there are others that have created repositories for it, among them J Fernyhough. You can add and install Python 3.6 via his repo:

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
  • I did that but when I run python3 after that, I still run python 3.5 as earlier. – Sashko Lykhenko Apr 1 at 15:19
  • 1
    You need to run it using python3.6. Both version will be installed on your machine and python3 is still aliasing python3.5 (or might actually be the command, I don't know). – Bamse Apr 6 at 9:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.