Python MK007  

pip: command not found error in Kali Linux

How to install PIP in Kali Linux

Hi Geeks,

In this post, am going to show you how to solve the pip: command not found error. The steps followed in this post is same to all other debian Linux distributions.

PIP:

pip is a package-management system written in Python used to install and manage software packages. It connects to an online repository of public and paid-for private packages, called the Python Package Index.

Why this error occurred ?

One of the most common problems with running Python tools like pip is the “Command Not Found” error. This means that python cannot find the PIP installation. So first of all you want to install PIP.

bash: pip: command not found

In most cases, you’ll need to navigate to the directory in which the tool is installed before you can run the command to launch it. Otherwise you want to install pip manually.

Content:

  • Python-PIP Installation
  • Python2-PIP Installation
  • Python3-PIP Installation

Python-PIP Installation:

If you use python ordinary version, then you want to download pip in normal version.

Open a terminal and run the following command,

mk007@linuxlia:~$ sudo apt-get install python-pip

Check the version of pip by running thr following command,

mk007@linuxlia:~$ pip --version

Python2-PIP Installation:

If you have python2 then you want to download pip2.

Open a terminal and run the following command,

mk007@linuxlia:~$ sudo apt-get install python2-pip

Check the version of pip by running thr following command,

mk007@linuxlia:~$ pip2 --version

Python3-PIP Installation:

If you have python3 then you want to download pip3.

Open a terminal and run the following command,

mk007@linuxlia:~$ sudo apt-get install python3-pip

Check the version of pip by running thr following command,

mk007@linuxlia:~$ pip3 --version

Conclusion:

If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.

 

Some other Python Bugs:

UnicodeDecodeError: E: sub process returned an error code

Solution for Import Error

Python 2.7 End of life

Leave A Comment