How to Install Pip in Debian, Ubuntu, Kali, Mint? – POFTUT

How to Install Pip in Debian, Ubuntu, Kali, Mint?

Pip is a python package manager. Python packages and libraries can be installed in different ways to the system. We can also use the distribution provided package manager to install Python libraries. Python packages can get from pypi.python.org . How can we install pip in Debian, Ubuntu, Kali or similar dpkg, apt-based distributions.

“Command ‘pip’ not found, but can be installed with:” Error

If pip is not installed in the current system we will get an error like below.

"Command 'pip' not found, but can be installed with:" Error

“Command ‘pip’ not found, but can be installed with:” Error

We can see that the pip  can be installed with the following command. But keep in mind that this will install pip command for the Python version 2 or Python2 . We can explicitly specify that we want to install pip3 or pip for Python 3 .

Install Python2 Pip For Ubuntu, Debian, Mint, Kali

Install Python2 Pip For Ubuntu, Debian, Mint, Kali

OR install pip for Python3

Install Python3 Pip For Ubuntu, Debian, Mint, Kali

Install Python3 Pip For Ubuntu, Debian, Mint, Kali

Install Pip2 For Python2

We assume that distribution default Python version 2. This makes keyword by default Python2. So we can just use the following command.

Show Pip Version For Python2

As Python is a dynamic language and provides updates about libraries pip will also get updates. This will cause pip version to change. We can print the current version of the pip command with the --version option like below.

OR

OR

Print Python Pip Version For Pip2 and Pip3

Print Python Pip Version For Pip2 and Pip3

Print Help For Pip

More information and help about pip can be printed with the --help option like below.

Print Help For Pip 

Print Help For Pip

“Command ‘pip3’ not found, but can be installed with:” Error

If pip is not installed in the current system we will get an error like below.

"Command 'pip3' not found, but can be installed with:" Error

“Command ‘pip3’ not found, but can be installed with:” Error

Install Pip3 For Python3

Pip3 is package manager for specifically Python3. So Python2 and Python3 package managers are different. How can we install Pip3 into Ubuntu,Debian,Kali or related dpkg or apt distros like below.

Show Pip3 Version For Python3

As Python3 is a dynamic language and provides updates about libraries pip3 will also get updates. This will cause pip3 version to change. We can print current version of the pip3 command with the --version option like below.

Show Pip3 Version For Python3

Show Pip3 Version For Python3

As we can see that the current version of Python is 3.6 and pip version is 9.0.1.

Print Help For Pip3

We can print help information about the pip3 with the --help an option like below.

Print Help For Pip3

Print Help For Pip3

Install Package with Pip From Python Repository

After installation of the pip package is complete we can install packages by using pip command. In this example, we will install the popular web framework named Django with pip command.

Install Package with Pip From Python Repository

Install Package with Pip From Python Repository

Install Package with Pip3 Python Repository

We can also install new packages with pip3 command we will install the Django package with pip3 command.

1 Response

  1. 25/10/2017

    … [Trackback]

    […] Read More here: poftut.com/how-to-install-pip-in-debian-ubuntu-kali/ […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)