This question already has an answer here:

I have several systems. Some are 16.04 mini-servers and I cannot update the OS yet. The others have been updated to Ubuntu 18.04. (The 18.04 version I used has Python 3.6.5 on it).

marked as duplicate by muru, pomsky, Ravexina, Zanna, RoVo Sep 25 '18 at 14:05

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.


Currently there is no trusted PPA containing python 3.7, so you will have to build it yourself. Download desired version and follow the instruction on this documentation page.

It should be as easy as:

sudo make install
  • 7
    Not really, the deadsnakes PPA has it. – Melebius Jul 18 '18 at 13:02
  • If you say it is secure I would like to update the answer – sleepyhead Jul 18 '18 at 16:49
  • Well, it’s always the matter of trust but deadsnakes is the de-facto standard for Python AFAIK. See the answer I linked before currently having 373 upvotes. – Melebius Jul 19 '18 at 6:57
  • hey, just to be sure linked answer will work for 3.7 with appropriate edits? – sleepyhead Jul 20 '18 at 17:24
  • 2
    Just to confirm: deadsnakes does have the 3.7 version. I also tested it minimally and it seems to work – josinalvo Dec 10 '18 at 18:56

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