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 Melebius, karel, Eric Carvalho, Thomas, Pilot6 Jul 19 at 12: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.

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:

./configure
make
sudo make install
  • 4
    Not really, the deadsnakes PPA has it. – Melebius Jul 18 at 13:02
  • If you say it is secure I would like to update the answer – sleepyhead Jul 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 at 6:57
  • hey, just to be sure linked answer will work for 3.7 with appropriate edits? – sleepyhead Jul 20 at 17:24
  • You should check it yourself if you want that in your answer. :-) However, I find OK to keep your current answer together with my previous comment. – Melebius Jul 21 at 5:40

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