

Note: We will run all commands as the root user, if you are managing your system as a normal user, then use the sudo command to get root privileges or you can as well configure your system to run sudo command without entering a password, it’s possible. In this article, we will explain how to install PIP on mainstream Linux distributions. Suggested Read: How to Install Latest Python 3.6 Version in Linux

First, we install the python3-setuptools package with the following command.Pip (recursive acronym for “ Pip Installs Packages” or “ Pip Installs Python“) is a cross-platform package manager for installing and managing Python packages (which can be found in the Python Package Index ( PyPI)) that comes with Python 2 >=2.7.9 or Python 3 >=3.4 binaries that are downloaded from. There is an alternative solution that can be accomplished by installing the python3-setuptools. In some cases, the above solution may not work for you. $ sudo apt-get install python3-pip Install python3-setuptools Now we can install the python3-pip package like below. Then in order to get new packages and updates we should update the repository and package information like below. We should enable the universe repository with the following add-apt-repository command like below. The python3-pip package is provided via the universe repositories especially the old Ubuntu versions like 18.04 and 20.04. In this tutorial, we examine this error and how to solve it for different Ubuntu versions like Ubuntu 18.04, 20.04, etc. Especially for the old versions of Ubuntu, we can get the “E: Unable to locate package python3-pip” error.


It is named Python3-pip and installed in the current Ubuntu distribution. Python provides the pip3 package in order to search, install, update, and remove Python packages.
