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).
1 Answer
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
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
./configure
make
sudo make altinstall
-
10
-
-
2Well, 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.– MelebiusJul 19, 2018 at 6:57
-
2Just to confirm: deadsnakes does have the 3.7 version. I also tested it minimally and it seems to work Dec 10, 2018 at 18:56
-
1WARNING 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.– acapolaMay 15, 2019 at 18:08