Fix: usr bin python no module named pip

In the Python environment, users need to upgrade or install new packages from the pip (a package manager for Python) command. While using pip or accessing pip, you might face an error “usr bin python no module named pip”.

This article will provide insight into the multiple reasons and their solutions to the above-mentioned error.

Reason: Not Install Pip Module in System

During the installation of the package from Python3, some modules are not properly integrated into the Linux system. The main reason for the “usr bin python no module named pip” error is that the “pip” module is not being installed in the current system:

Solution 1: Install Python3

To resolve this error, you just install the latest version of python in the operating system. For instance, execute the below script for installing Python3 via terminal:

$ sudo apt install python3

It requires permission to continue the installation process; hit “Y” from the keyboard to complete the installation:

For RHEL/CentOS Linux Distributions

To install python3 in “RHEL, CentOS” Linux distributions, follow the below script:

$ sudo yum install python3-pip

For Fedora

$ sudo dnf install python3-pip

Check Python Version

The installed python version can be checked in the operating system. For instance, the “–version” utility is used to present the current version of python:

$ python3 --version

The output shows that the “Python 3.10.6” version has been installed in the current system.

Solution 2: Install pip Package Manager

Pip3 is the package manager for Python3. It installs the packages which are not in the Python Library. The installation of Pip3 resolves the above error, and you can install any package from a third-party software package. To install the pip3 package manager, run the below-mentioned command:

$ sudo apt install python3-pip

Check Package Manager Version

You can verify the installed package manager with the help of the “— version” utility. For instance, the script id given below that displays the currently installed version:

$ pip3 --version

Usage of pip Command

The possible commands of pip with all descriptions can be visualized by executing the below script:

$ pip

(Optional) Install a Package From pip3

It is an additional step to install any package by utilizing the package manager. For this, specify the package’s name below:

$ pip3 install scrapy

That is all from this guide.


The error “usr bin python no module named pip” comes across when the python environment is not installed in the operating system. To resolve this error, execute the “<sudo apt install python3>” command to enable the system to execute Python code. Additionally, the “<sudo apt install python3-pip>” command resolves the error by enabling the users to install any package from “pip3” package managers.