HomeLinuxRepair "pip command not discovered" in Linux

Repair “pip command not discovered” in Linux


PIP is the traditional package deal supervisor for Python, which is the usual software for putting in and managing Python packages alongside their dependencies which aren’t included in the usual Python library.

When utilizing pip, you would possibly encounter the error “pip command not discovered” on the terminal. Beneath is an excerpt of the error as captured on the Ubuntu system.

$ pip3 set up pandas

Command 'pip3' not discovered, however might be put in with:
sudo apt set up python3-pip

From the output, you’ll be able to infer that there’s a excessive likelihood that PIP is just not put in.

On this article, we take a look at methods how one can set up PIP in Linux to repair the “pip command not discovered” error.

Set up PIP in Linux

The primary plan of action is to make sure that Python is put in on the system, which you’ll be able to verify by operating:

$ python3 --version

Python 3.9.2

From the output, we have already got Python 3.9 put in.

To put in PIP on Debian-based distributions, run the next command:

$ sudo apt set up python3-pip -y

The command installs PIP alongside a bunch of different further packages and dependencies.

Install PIP in Debian-based Systems
Set up PIP in Debian-based Methods

For RHEL-based distributions similar to Fedora, Rocky, AlmaLinux, and CentOS run the next yum command.

$ sudo yum set up python3-pip -y

For Arch Linux distributions, execute the command:

$ sudo pacman -S python-pip -y

As soon as put in, confirm the model of the pip put in as proven.

$ pip3 --version

pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

Moreover, you’ll be able to confirm the placement of pip binaries as proven

$ which pip3

/usr/bin/pip3

From the output, we now have put in PIP 20.3.4.

Improve PIP in Linux

The opposite option to repair the “pip command not discovered” error is to improve PIP to the newest model.

$ sudo -H pip3 set up --upgrade pip
Upgrade PIP in Linux
Improve PIP in Linux

From the output, we now have upgraded the pip from model 20.3.4 to 23.1.2.

PIP – Set up Python Packages

Now you must be capable to set up and handle Python packages and libraries utilizing Pip with out a problem.

For instance, you’ll be able to set up Pandas as proven.

$ pip3 set up pandas
Install Python Pandas in Linux
Set up Python Pandas in Linux

On this article, we now have efficiently resolved the error “pip command not discovered”. I hope you discovered this text informative.

If You Respect What We Do Right here On TecMint, You Ought to Take into account:

TecMint is the quickest rising and most trusted neighborhood web site for any type of Linux Articles, Guides and Books on the net. Thousands and thousands of individuals go to TecMint! to look or browse the hundreds of revealed articles obtainable FREELY to all.

When you like what you might be studying, please contemplate shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful on your by no means ending help.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments