

Then, add the deadsnake PPA: add-apt-repository ppa:deadsnakes/ppa You can use the deadsnake repository to get a newer release of Ubuntu, aside from the ones that are in Ubuntu’s default repositories.įirst, run the following command: apt-get install software-properties-common Run the following commands: apt-get update apt-get upgrade Step 2: Add deadsnake’s repo The first step, as always, is to update the system. Recommended read: Best Linux Distro for Programming Step 1: Update Ubuntu The instructions are similar for other versions too. You can still follow the tutorial below to install Python 3.10 or 3.11 on any Ubuntu. On Ubuntu 20.04, the default Python version is 3.8. If you prefer a newer version or if you don’t have Python installed, follow the tutorial. In which case, you don’t need to install it, so don’t follow this tutorial. If it’s already installed, you will get an output similar to this: Python 3.8.10 You can do so by running the following command: python3 -V You can get a Linux VPS from any provider.īefore following the tutorial, you should check if Python is already installed on your system. We’re using an Ubuntu 20.04 server from Linode, but these instructions will work on any other Ubuntu distro. SSH access to the server (or just open Terminal if you’re on a desktop).Root user or a user with sudo privileges.This is what you’ll need for this Python on Ubuntu tutorial:
#SUDO APT INSTALL PYTHON HOW TO#
Step-by-step, beginner-friendly instructions.Īlternative tutorial: How to install Python on CentOS. In this tutorial, we’re going to show you how to install the latest version of Python on Ubuntu.
