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).


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

Update: Thank you to C14L, also now it is on doc page. make install can overwrite or masquerade the python3 binary. make altinstall is therefore recommended instead of make install since it only installs exec_prefix/bin/pythonversion

sudo make altinstall
  • 10
    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
  • 2
    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
  • 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
  • 1
    WARNING for 16.04 users: this works but it breaks several things in your system, including the terminal from GUI (fortunately Atl-Ctrl-F1 still work to repair the mess). make altinstall does not break your system right away but it will if you make 3.7 the default alternative. – acapola May 15 '19 at 18:08

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