🌐
GitHub
gist.github.com › j40903272 › a4b715b79b2e5aa74342fe995a1c1ef9
Install python3.7 · GitHub
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 2 sudo update-alternatives --config python3 ... sudo apt-get install -y build-essential ...
🌐
GitHub
gist.github.com › simonw › 7d391ec1fdddd730e0075d963da65f1f
How to run Python 3.7 on Ubuntu 16.04 · GitHub
As my app (to be migrated from Raspberry Pi) is made for 3.7, I chose to download that version, and it worked well. The new version was installed into /usr/local/bin/python, so I've then run: $ sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3 $ update-alternatives --config python · to link /usr/bin/python to it (should it break anything in this old Ubuntu, it'll be very easy to revert using the latter command).
Discussions

Python 3.7 on Ubuntu 20.04 - Stack Overflow
I am preparing a docker image for Ubuntu 20.04 and due to TensorFlow 2.0 requirement, I need Python 3.7. TensorFlow runs on Python 3.5 to 3.7. Running apt install python3 installs Python 3.8 by def... More on stackoverflow.com
🌐 stackoverflow.com
Help with installing python 3.7
Which Distro are you running on the Pi? Maybe you need to add a repository first if no python 3.7 is available in the default repos. Also check which Version of python do you have by putting this in a Script and run it: https://stackoverflow.com/questions/1093322/how-do-i-check-what-version-of-python-is-running-my-script#1093331 More on reddit.com
🌐 r/linux4noobs
7
2
April 27, 2020
I need to use python 3.7 but Ubuntu 20.4 comes with 3.8 pre-installed - can I install it with apt-get alongside 3.8?
In your case, I would install anaconda to not rely on the system installed python packages. You could have any version you wanted. More on reddit.com
🌐 r/Ubuntu
6
3
July 9, 2020
Installing specific python version in Ubuntu 20
You can use pyenv to install different versions of python and it allows you to change your global python version easily using "shims" or it can even change your python version per project. If you use pyenv and pipenv you can easily create python venvs with specific python version. I highly recommend both tools. More on reddit.com
🌐 r/Python
2
0
June 21, 2020
🌐
GitHub
gist.github.com › hohl › 66a20c550ac292c85e10148f0695b5a7
Install Python 3.7 on Ubuntu · GitHub
Install Python 3.7 on Ubuntu · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters ·
🌐
GitHub
gist.github.com › AaronLaw › 969aa8ef63e1ac3a0d23803b69fc67b1
Installing Python 3.7 from source on Ubuntu 18.04 · GitHub
# update system sudo apt update && sudo apt upgrade -y # install build tools and python prerequisites sudo apt install build-essential libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev ...
🌐
GitHub
gist.github.com › c0mpiler › a8e92d8842ded56b651420c6e35633e4
Setup python 3.7 on Ubuntu · GitHub
January 9, 2019 - Setup python 3.7 on Ubuntu · Raw · install_python37.sh · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
🌐
Linuxize
linuxize.com › home › python › how to install python 3.7 on ubuntu 18.04
How to Install Python 3.7 on Ubuntu 18.04 | Linuxize
October 15, 2019 - This tutorial describes two ways of installing Python 3.7 on Ubuntu 18.04: By using the standard apt tool from the deadsnakes PPA, and by building from the source code.
Find elsewhere
🌐
GitHub
gist.github.com › christian-korneck › e35bc00e12026e13f50c83519a32470e
python3.7-go-ubuntu20.04-arm64 · GitHub
# we're on Ubuntu 20.04 on arm64 $ uname -a ... Linux [...] 5.15.0 #40~20.04.1-Ubuntu [...] aarch64 [...] ... # install build tools $ apt-get -y update && apt-get -y install curl build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev pkg-config # install latest Go $ curl -L https://golang.org/dl/go1.20.4.linux-arm64.tar.gz -o go.tar.gz && tar -C /usr/local -xzf go.tar.gz && ln -s /usr/local/go/bin/go /usr/local/bin/go # build and install Python 3.7 to /opt/py $ curl https://www.python.org/ftp/python/3.7.10/Python-3.7.10.tgz -o python.tgz && tar xf python.tgz $ cd Python-3.7.10 $ ./configure --enable-shared --prefix=/opt/py $ make -j `nproc` $ make install $ echo /opt/py/lib > /etc/ld.so.conf.d/py.conf && ldconfig $ /opt/py/bin/python3.7 -m ensurepip $ export PATH=$PATH:/opt/py/bin # to persist, put this i.e.
🌐
Errbufferoverfl
errbufferoverfl.github.io › snake-charming › installing_python_three_point_seven.html
Installing Python 3.7 — Snake Charming for Beginners 1.0.0 documentation
Distributor ID: Ubuntu Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial · Comes with Python 3.7 by default, you can invoke it by opening a terminal window and typing the following: ... Does not come with Python 3.7 by default, but is available for download (and installation) via apt.
Top answer
1 of 2
37

For newer Python I prefer the deadsnake ppa. For installing it, try this:

sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7
$ python3.7 -V
Python 3.7.7
2 of 2
4

The Python 3.7 package from the official Ubuntu 19.10 repositories can be installed in Ubuntu 20.04 without adding any new repositories to your software sources by running the following commands:

sudo apt update  
wget -c http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-9_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/p/python3.7/libpython3.7-stdlib_3.7.5-2~19.10ubuntu1_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/p/python3.7/libpython3.7-minimal_3.7.5-2~19.10ubuntu1_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/p/python3.7/python3.7-minimal_3.7.5-2~19.10ubuntu1_amd64.deb http://security.ubuntu.com/ubuntu/pool/main/p/python3.7/python3.7_3.7.5-2~19.10ubuntu1_amd64.deb
sudo apt install ./libffi6_3.2.1-9_amd64.deb ./libpython3.7-minimal_3.7.5-2~19.10ubuntu1_amd64.deb ./libpython3.7-stdlib_3.7.5-2~19.10ubuntu1_amd64.deb ./python3.7-minimal_3.7.5-2~19.10ubuntu1_amd64.deb ./python3.7_3.7.5-2~19.10ubuntu1_amd64.deb

Add Python 3.7 to update-alternatives so that you can switch between Python 3.8 and Python 3.7 by running update-alternatives --config python3.

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7
update-alternatives --config python3
🌐
GitHub
gist.github.com › hadisfr › 5c055c2d850cabeecaf51d1b599bd363
a short guide to install python3 and pip3 on Ubuntu Server · GitHub
You may need to add an external PPA (such as deadsnakes) to install newer python versions on older Ubuntu ditributions. [+] sudo add-apt-repository ppa:deadsnakes/ppa sudo apt-get update sudo apt-get install python3.7 python3.7-dev
🌐
TecAdmin
tecadmin.net › install-python-3-7-on-ubuntu-linuxmint
How To Install Python 3.7 on Ubuntu, Debian & LinuxMint - TecAdmin
April 26, 2025 - Working on Ubuntu 16.04 which has Python 3.5 and needed to have 3.7. Very clear instructions. ... sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev
🌐
GitHub
gist.github.com › jfcherng › 28d1d7c91ba1bb463aa8d72178bc085c
Python 3.7 Build on Ubuntu 16.04 · GitHub
Specifically, I have https://github.com/jfcherng/python-build-standalone-install for my personal use.
🌐
Readthedocs
fire-insights.readthedocs.io › en › latest › installation › python-install-ubuntu.html
Python Installation on Ubuntu — Sparkflows 0.0.1 documentation
Python Installation on Ubuntu · Edit on GitHub · Python is only needed if you need to use Python and the PySpark engine in Fire Insights. Python modules in Fire Insights use Python 3.7+. Use the below commands: python --version python3.7 --version ·
🌐
GitHub
gist.github.com › thejmazz › f25d801e1ddbcb458e5f
Install python 2.7.9 and 3.4.3 on Ubuntu - Gist - GitHub
Install python 2.7.9 and 3.4.3 on Ubuntu. GitHub Gist: instantly share code, notes, and snippets.
🌐
Tutorials24x7
tutorials24x7.com › python › how-to-install-python-37-on-ubuntu-1804-lts
How To Install Python 3.7 On Ubuntu 18.04 LTS | Tutorials24x7
September 11, 2019 - # Refresh the packages index sudo apt update # Prerequisites sudo apt install python # Verify Installation python --version # It shows version Python 2.7.17 # Prerequisites sudo apt install python3 # Verify Installation python3 --version # It ...
🌐
UbuntuHandbook
ubuntuhandbook.org › home › howtos › how to install python 3.7.2 in ubuntu 18.04 / 18.10
How to Install Python 3.7.2 in Ubuntu 18.04 / 18.10 | UbuntuHandbook
If I want something to run with Python 3.7, then I call it directly: ... $ apt install python-virtualenv $ virtualenv -p /usr/bin/python3.7 venv37 $ source ./venv37/bin/activate [venv37] $ Shotcut 26.6 Released! OpenFX / VST2 Filters Support & HDR PreviewJune 27, 2026 · Ubuntu 26.10 Snapshot ...