How To Install Python On Linux
In this article, we will explain how to install Python on Linux. Python is definitely one of the most infamous programming languages. Python is very easy to learn due to the simple syntax, and high readability. This makes it a top choice among developers. Apart from that, Python’s versatility also makes it a preferred programming language.
Let us now go through the steps to install the latest version of Python on Linux. We will be installing Python on the Debian distribution of Linux.
1. Installing Development Packages
Before we start installing Python, we need to install the development packages. And, these packages include headers related to the libraries. First, run the below command to get the updated information related to the updated version of packages and dependencies.
sudo apt update
Then, run the below command to install the development packages necessary to build Python.
sudo apt install build-essential zlib1g-dev \ libncurses5-dev libgdbm-dev libnss3-dev \ libssl-dev libreadline-dev libffi-dev curl


