Learn how to install Python 3.7 in Ubuntu 16.04 using the “deadsnakes PPA”, a repository that contains modern Python versions for older Ubuntu installations.
Installing Python on Ubuntu Linux 16.04
python --version will check the Python 2 version, and typing
python3 --version allows you to check the Python 3 version that’s installed, if any. And here you can say it’s
Python 3.5.2, which is a little out of date. Let’s change that.
The first step is to add a new repository with a
sudo add-apt-repository command, and then adding
ppa:deadsnakes/ppa. This is a repository with modern versions of Python available for older versions of Ubuntu. So you can see here, we get some information about it, and hitting Enter will allow your system to use that repository to install software. Next, the catalog of software needs to be updated with the
apt-get update command. It just takes a few seconds.
Become a Member to join the conversation.