28

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 .

  • 2
    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 '18 at 7:53
  • 1
    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 '18 at 7:54
  • @Ray I think you should change your comment to an answer to the question – Katu Oct 24 '18 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 '18 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 '18 at 16:47
36

Python 3.7.1 is still in maintenance version.

It is only available for download to Windows and macOS 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 the terminal

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.7
| improve this answer | |
  • it worked on my UBUNTU 18.4 LTS – Mohammad Heydari Jan 21 '19 at 20:48
  • 1
    There is a newer python stable now than this answer. – Santropedro Jun 3 '19 at 3:54
  • 1
    just change the second command to the latest stable version instead of python3.7, currently 3.8 – baldy May 18 at 15:16

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