Pip is a package management system for Python that simplifies installing packages. With pip, you can install any Python package that is registered in the Python Package Index (PyPI) and other package indexes.

In this guide, you will learn how to install Pip under Ubuntu 20.04. Since Python 3 comes pre-installed in Ubuntu 20.04, we don’t have to show you how to install it.

To install Pip, you need to be as a root user or have the sudo user privileges, the following command makes sure your machine is up to date:

$ sudo apt update

The below command is responsible for install Pip for Python 3:

$ sudo apt install python3-pip -y

The -y flag will confirm that we’re agreeing for all required dependencies for Pip, this will take few seconds/minutes depending on your machine.

When it’s finished, you can confirm that Pip is indeed installed by the following command:

$ pip3 -V

Output:

pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8)

Awesome, it’s installed! You can confirm this by installing some Python library:

$ pip3 install bs4

Conclusion

There you have it, in this guide, we have shown you how to install Pip on your Ubuntu machine.

For more information about Pip, please check their official guide.

Happy installing ♥

1 thought on “How to Install Pip on Ubuntu 20.04

Comments are closed.