Kali Linux

How to Install Python PIP on Kali Linux

Note: Insert a hyperlink on the highlighted phrases (in yellow) for easier access.

PIP is mainly used to install the new Python packages/libraries/modules from the official Python PyPi package repository on your computer.

In this article, we will show you how to install PIP on Kali Linux. We will also show you how to upgrade PIP to the latest version on Kali Linux.

Topic of Contents:

  1. Updating the APT Package Database Cache on Kali Linux
  2. Installing Python PIP on Kali Linux
  3. Checking If Python PIP Is Accessible on Kali Linux
  4. Upgrading PIP to the Latest Version on Kali Linux
  5. Using Python PIP on Kali Linux
  6. Conclusion

Updating the APT Package Database Cache on Kali Linux

Update the APT package database cache of Kali Linux with the following command:

$ sudo apt update

The package database cache of Kali Linux should be updated.

A screenshot of a computer Description automatically generated

Installing Python PIP on Kali Linux

Python PIP is available in the official package repository of Kali Linux. So, it is easy to install.

To install Python PIP on Kali Linux, run the following command:

$ sudo apt install python3-pip

To confirm the installation, press Y and then press <Enter>.

A screenshot of a computer Description automatically generated

Python PIP is being installed from the official package repository of Kali Linux. It takes a few seconds to complete.

A screenshot of a computer program Description automatically generated with medium confidence

Python PIP should be installed.

A screenshot of a computer Description automatically generated

Checking If Python PIP Is Accessible on Kali Linux

To check whether you can access PIP and if PIP is working on Kali Linux, run the following command:

$ pip --version

If PIP is accessible and it’s working, the installed version number of PIP should be printed. At the time of this writing, Kali Linux has PIP 23.1.2 in its package repository. Newer versions of PIP may be available. So, you will want to upgrade it to the latest version. We will show you how to do that in the next section of this article.

A picture containing text, screenshot, multimedia software, software Description automatically generated

Upgrading PIP to the Latest Version on Kali Linux

To check whether a newer version of PIP is available and to upgrade PIP to the latest version in Kali Linux, run the following command:

$ pip install --upgrade pip

PIP should be upgraded to the latest version if newer versions of PIP is available in the PyPi package repository.

A screenshot of a computer Description automatically generated

To check the version number of PIP after the upgrade, run the following command. As you can see, Kali Linux comes with the latest version of Python PIP. So, nothing changed in our case. But, by the time you read this article, you may get a newer version of Python PIP.

$ pip --version

Using Python PIP on Kali Linux

If you want to know more about PIP and how to use it, we recommend you read the article on How to Manage the Python Packages with PIP. In this article, will show how to install the new Python packages, list the installed Python packages, and uninstall the Python packages with PIP, and so on.

Conclusion

We showed you how to install Python PIP on Kali Linux. We also showed you how to upgrade PIP to the latest version in Kali Linux.

About the author

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.