How to Install Python Pip on Ubuntu 20.04

By

Pip:

Pip is a package manager. All the software packages and libraries which are written in Python are installed and managed using Pip. An online repository named ‘Python Package Index’ (PyPI) is considered as the source or storage for the packages and dependencies. Pip searches for packages on PyPI. After finding that PyPI downloads it and then Installs it on the system. When Pip is installed on any system it works as a command-line-based program. Its usage is not only restricted to install and uninstall packages or dependencies rather it can be utilized for creating a Python-related virtual environment.

Now let’s move on towards its Installation on your Ubuntu 20.04.

Note: To follow the installation, make sure that you are a ‘superuser’ or ‘root’ as the superuser provides unrestricted access to all the commands, files, resources, and directories.

Install Pip on Ubuntu 20.04

Step 1: First of all, Open up the terminal by searching it manually in activities, or you can also press ‘CTRL+ALT+T’ to view the terminal window.

Step 2: Now update the package lists.

$ sudo apt update

Step 3: Now we are going to use the command given below for ‘Pip’ installation.

$ sudo apt install python3-Pip

Enter ‘y’ to continue.

Step 4: Verify the installation of Pip on your system by writing-out the following command on your terminal.

$ Pip3 --version

Step 5: Use the following command to know about all the other commands and their usage with Pip.

$ Pip3 --help

That was all about the Pip installation on Ubuntu 20.04. Next, we are going to see how you can use the ‘Pip’ command to download and install any package. 

In this example, Pip will install the ‘pandas’ on your system by searching it in its storage.

$ Pip3 install pandas

That’s the way for installing any dependency or package using Pip. You can explore it further to develop more understanding of the usage of Pip.

Conclusion:

The starting of this article comprises a brief introduction of ‘Pip’. After that, we have shown you the step by step method of ‘Pip’ installation on Ubuntu 20.04. In the last section, you got to know about the package installation using the ‘Pip’ command by following an interesting example.

Subscribe to Our Newsletter
Join our Newsletter and get the latest Linux news and tips
in your inbox for FREE.