This question already has an answer here:

The current version of python I've now which is installed by default with Ubuntu is 2.7rc1 ,
Is it possible to update it officially to the latest version (3.7.1) ?

Thank You .

marked as duplicate by karel, Byte Commander, user535733, Elder Geek, Eric Carvalho Oct 27 at 18:32

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.

  • 1
    Python 3.x is contained in the package called "python3". Currently, it looks like it is version 3.6.5. You can have this package and Python 2 co-existing. – Ray Oct 24 at 7:53
  • What are the results of python3 -V ? They should show that you already have Python 3.6.6 installed in 18.04. – karel Oct 24 at 7:54
  • @Ray I think you should change your comment to an answer to the question – Katu Oct 24 at 8:18
  • 1
    You should read the duplicate question link. Asking us to "explain in detail" something that we have already explained in detail seems a bit...um.... – user535733 Oct 24 at 12:43
  • 1
    @AhmedAshraf I hope what I said below helps. But, if you're a new Ubuntu user then I don't suggest you dive into the latest Python. I think for your needs, any Python 3.x will do. If you reach a stage where you're more familiar with Ubuntu and the latest version in the repository isn't good enough for you, then you can consider the latest release. I presume when you reach that stage, you are purposely after features in 3.7.1 that isn't in 3.6.5 . If you don't know (or care) about the difference, then below should help you. – Ray Oct 24 at 16:47
up vote 3 down vote accepted

The Python 3.7.1 is still in maintenance version.
It is only available for download to Windows and Mac-OSX users. Once the stable version is released then it is made available in Linux repositories.
For Windows and Mac users visit this python.org URL.

For Linux users: you can download the 3.7.0 version from terminal

sudo apt-get update && apt-get upgrade
sudo apt-get install python3.7

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