4 Ways to Fix the Pip Install Not Working Issue - MiniTool Partition Wizard (2024)

By Linda | Follow | Last Updated

Is pip install not working? The pip install command is used to install packages. If it is not working, you may receive various errors when you run it. This post from MiniTool Partition Wizard offers you 4 ways to solve this issue.

Pip Install Not Working

Pip is the default package-management system written in Python and is used to install and manage software packages. Most distributions of Python come with pip preinstalled.

After installing Python and pip, you can use the pip install command to install packages. The command formula is as follows: pip install some-package-name.

However, some people report that they have encountered the pip install not working issue. When they run the pip install command, they may receive the “pip command not found” or “pip is not recognized” error.

Why does the pip install not working issue occurs? Possible reasons are as follows:

  • Pip is not installed.
  • Pip is not added to the PATH environment.
  • Pip is installed, but it is not compatible with the current environment.

How to Fix the Pip Install Not Working Issue

If you encounter the “pip command not found” or “pip is not recognized” error, you can try the following methods to solve them. But which method should you use? You need to decide after checking Python and pip versions. Here is the guide:

  1. Open Command Prompt.
  2. Execute the command “python -v”. It will tell you the python version.
  3. Execute the command “pip –version”. It will tell you the pip version. If you encounter errors in this step, it means that pip is not installed or not added to the PATH environment.
  4. Then, you need to see if their versions are the same. If not, you need to update pip or reinstall it.

Way 1. Install Pip

If pip is not installed, you can install it by executing the following commands:

  • curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  • python get-pip.py (If your Python is 3.x version, please execute python3 get-pip.py)

The first command will download the installation script and the second command will run the script. Now, you can find the pip.exe under the Python scripts directory.

4 Ways to Fix the Pip Install Not Working Issue - MiniTool Partition Wizard (1)

How to Install PIP on Windows/Mac/Linux Easily

This post shows you how to install PIP via Python command on Windows, Mac, and Linux, separately. You can have a try.

Read More

Way 2. Add Pip to PATH

If you didn’t change the installation location, the default pip path should be C:UsersUsernameAppDataLocalProgramsPythonPython310Scripts. Now, you should add this path to the environment variables. Here is the guide:

  1. Press “Windows key + R” to open theRundialog box.
  2. In theRunbox, type “sysdm.cpl” and pressEnterto open theSystem Propertieswindow.
  3. Go to theAdvancedtab and clickEnvironment Variables.
  4. Double-clickthePATHvariable underSystem Variables.
  5. ClickNew, and add the pip path. Then, selectOK.

Way 3. Update Pip

If the pip version is lower than the Python version, you may need to upgrade pip using the command “pip install -U pip”. If this command doesn’t work, you can try this command “easy_install –upgrade pip”.

Way 4. Reinstall Python and Pip

If all the above ways don’t work, I recommend you reinstall Python and pip. You need to uninstall Python first and then you can install the latest Python. This time, please remember to install pip and add it to the path.

Bottom Line

Are you interested inMiniTool Partition Wizard? This software can help you clone the system, manage disks better, and recover data. If you have this need, you can download it from the official website.

About The Author

4 Ways to Fix the Pip Install Not Working Issue - MiniTool Partition Wizard (2)

Position: Columnist

Linda has been working as an editor at MiniTool for 5 years. She is always curious about computer knowledge and learns it crazily. Her articles are simple and easy to understand. Even people who do not understand computer can gain something. By the way, her special focuses are disk management, data recovery and PDF editing.

4 Ways to Fix the Pip Install Not Working Issue - MiniTool Partition Wizard (2024)

FAQs

How to fix pip not working? ›

If Python is not installed on your system or not added to the system's PATH variable, the operating system will not be able to locate the pip executable. To fix this issue, you need to install Python and add it to the system's PATH variable.

How do I fix a broken pip install? ›

How to Fix the Pip Install Not Working Issue
  1. Open Command Prompt.
  2. Execute the command “python -v”. It will tell you the python version.
  3. Execute the command “pip –version”. It will tell you the pip version. ...
  4. Then, you need to see if their versions are the same. If not, you need to update pip or reinstall it.
Apr 12, 2024

Why can't I install using pip? ›

Windows installers for Python do not add Python, or Pip, to the PATH by default; you have to tell them to do so when you run the installer, by checking that box (or you can fix PATH yourself afterwards, or try “repairing” the installation from the Add/Remove Programs interface).

How do I get-pip install to work? ›

Method 1: Install PIP on Windows Using get-pip.py
  1. Step 1: Download PIP get-pip.py. Before installing PIP, download the get-pip.py file. ...
  2. Step 2: Installing PIP on Windows. To install PIP, run the following Python command: python get-pip.py. ...
  3. Step 3: Verify Installation. ...
  4. Step 4: Add Pip to Path. ...
  5. Step 5: Configuration.
Nov 30, 2023

How do you check pip is working or not? ›

First, let's check whether you already have pip installed:
  1. Open a command prompt by typing cmd into the search bar in the Start menu, and then clicking on Command Prompt: ...
  2. Type the following command into the command prompt and press Enter to see if pip is already installed: pip --version.

What is the pip install command? ›

The pip command looks for the package in PyPI, resolves its dependencies, and installs everything in your current Python environment to ensure that requests will work. The pip install <package> command always looks for the latest version of the package and installs it.

How to install without pip install? ›

Packages That Cannot be Installed with Pip
  1. Download the package and extract it into a local directory.
  2. If the package includes its own set of installation instructions, they should be followed. Otherwise, the most common method for manually installing a package is to implement setup.py .
Jan 8, 2020

How do I force install pip packages? ›

Method 1: Using the –force-reinstall Option
  1. --force-reinstall. option. ...
  2. package_name. with the name of the package you want to reinstall. ...
  3. requests. package. ...
  4. requests. (if it is installed) and then reinstall it. ...
  5. -I. or.
  6. --ignore-installed. option. ...
  7. package_name. with the name of the package you want to reinstall. ...
  8. numpy. package.
Nov 2, 2023

How to install something without pip? ›

How to install Python libraries without using the pip command?
  1. downloading files.
  2. .tar.tz.
  3. cd command.
  4. setup.py.
  5. Final.
Oct 6, 2021

Where does pip install? ›

By default, pip installs packages located in the Python Package Index (PyPI), but can also install from other indexes.

Why is my Python not working? ›

The main causes of the python: command not found error include the following: Python is not installed. The PATH variable does not contain the Python executable path. The Python symbolic link is not configured correctly.

How do I run pip install upgrade? ›

Run the command python -m pip install --upgrade pip to update Pip. If this command doesn't work on Windows, use py -m pip install --upgrade pip instead. If you get permissions errors in Linux, run sudo python -m pip install --upgrade pip .

How to install pip locally? ›

How?
  1. Install the downloaded package into a local directory : python get-pip.py --user This will install pip to your local directory (. local/bin) .
  2. Now you may navigate to this directory (cd . local/bin) and then use pip or better set your $PATH variable this directory to use pip anywhere : PATH=$PATH:~/.

How to find the location of a pip package? ›

Different pip packages may be installed in different places on the same system. Therefore, the best way to find the location of a package is through pip 's show command.

How do I force reinstall pip library? ›

Reinstalling the current version of a library

--upgrade: Upgrade all specified packages to the newest available version. –no-deps: Don't install package dependencies. –force-reinstall: Reinstall all packages even if they are already up-to-date. <package_name> is the name of the package to be installed.

Why does pip not work in VS Code? ›

If you get a message ​'pip' is not recognized as an internal or external command, operable program or batch file​ then you have not installed Python correctly. Uninstall Python and do it again following the instructions more carefully. A large wall of text will appear as pip installs the packages.

Does Python 3.12 have pip? ›

The current version of pip works on: Windows, Linux and MacOS. CPython 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, and latest PyPy3.

How do I clean up pip installations? ›

If you want to delete all the packages installed by PIP, you can use the pip freeze command. It can help you list all the installed packages via PIP and uninstall them without asking for confirmation. The correct type of this command is pip uninstall -y -r <(pip freeze). pip uninstall -r requirements.

Top Articles
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 6061

Rating: 4.8 / 5 (78 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.