Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Software»How To Fix PIP Install Not Working?

How To Fix PIP Install Not Working?

Anup ThapaBy Anup ThapaJuly 10, 2022
pip install not working

Package Installer for Python (PIP) is the preferred package-management system for Python. It’s used to install third-party packages from an online repository called the Python Package Index.

When attempting to install Python packages, you may encounter errors stating PIP is not recognized, command not found, or can’t open the file. In this article, we’ve detailed why such errors occur, as well as how you can fix them.

Table of Contents

  • Why is the PIP Install Not Working?
  • How to Fix PIP Install Not Working?
    • Include PIP During Installation
    • Add PIP to PATH Variable
    • Use Correct PIP and Python Version
    • Manually Install PIP
    • Reinstall Python

Why is the PIP Install Not Working?

The most common reasons for issues with PIP installations is either that an incorrect PIP path is added to the PATH system variable, or the PIP path isn’t added at all. This often happens because users forget or don’t know to include PIP during the Python installation. In case of Linux, PIP isn’t included during the Python installation to start with, so you have to install it separately later.

How to Fix PIP Install Not Working?

In most cases, you won’t encounter this error if you use a Python IDE instead of CMD. However, if you don’t want to use an IDE, or you face this error despite using an IDE, you can try the fixes from the section below to resolve the issue.

Include PIP During Installation

First, you should make sure that PIP was actually included during the Python installation. Here are the steps to do so:

  1. Press Win + R, type appwiz.cpl, and press Enter.
  2. Select Python from the list and press Change.
  3. Click on Modify. Ensure pip is selected and press Next > Install.
    install-pip-python-optional-features
  4. After the installation completes, check if you can install the Python packages now.

Add PIP to PATH Variable

As stated, the PIP Install path needs to be added to the PATH system variable for it to work. Otherwise, CMD won’t recognize the command and you’ll encounter the not recognized error. First, you should check if this is the issue with the following steps:

  1. Press Win + R, type cmd, and press CTRL + Shift + Enter.
  2. Type echo %PATH% and press Enter.
    echo-path

Depending on your Python version and install location, you may see a path like C:\Python36\Scripts. This means the PIP path is already added to the PATH variable. If you don’t see it, you can add it via the command line with the following steps:

  1. Execute the following command:
    setx PATH "%PATH%;<PIP Path>"
    setx-path-python
    As stated, the PIP path will differ according to your Python version. We’ve used C:\Python36\Scripts as an example but in your case, the PIP path maybe different. If you aren’t sure what the PIP path is, check the GUI method below.
  2. Start a new instance of command prompt and check if you can install any packages.

The command-line interface method returns a lot of paths at once, which can get confusing. Instead, you can also check the paths via the GUI. Here are the steps to do so:

  1. Press Win + R, type sysdm.cpl, and press Enter.
  2. Switch to the Advanced tab and click on Environment Variables.
    environment-variables
  3. In the System variables section, select Path and press Edit.
  4. Click on New and add the pip installation path. This differs depending on your Python version but for the current latest version (3.10), the path is:
    C:\Users\Username\AppData\Local\Programs\Python\Python310\Scripts.
    add-new-path-variable
  5. Check if you can install a pip package now.

Use Correct PIP and Python Version

The pip install packagename command is generally used to install Python packages. If this command doesn’t work, you can try the commands shown below instead. Don’t forget to replace packagename with the actual package you’re trying to install.

python -m pip install packagename

py -m pip install packagename

pip-install-packagename

If you have multiple python versions, specify the version number as shown below:

py -3 -m pip install packagename

install-pip-package-version-number

Manually Install PIP

Due to failed upgrades and similar issues, your PIP file can get corrupted which can also lead to various problems such as PIP Install Not Working. One easy way to fix this is by removing Python and reinstalling it. You can find the steps to do so in the next section.

Alternatively, you can also manually install PIP with the following steps:

  1. Download get-pip.py and store it in Python’s installation directory.
  2. Enter cd <above directory> to switch to the installation directory in CMD.
    python-install-directory
  3. Type py get-pip.py and press Enter.
    py-get-pip
  4. Once pip is installed, check if you can install any packages.

In case of Linux, pip doesn’t come bundled with Python. You have to manually install it first. You can do so by executing the following command in the terminal:

sudo apt-get -y install python3-pip

install-python-pip-ubuntu

Reinstall Python

The final option is to remove Python entirely and then reinstall it. Any problematic files will be replaced during the process, which should ultimately resolve the issue. Here are the steps to do so:

  1. Press Win + R, type appwiz.cpl, and press Enter.
  2. Select Python from the list, click on Uninstall and follow the on-screen instructions.
  3. Restart your PC and reinstall Python.
  4. Enable the Add Python to Path option and select Customize installation. Also, make sure that PIP is included during the installation.
    install-python-add-python-to-path
  5. After the installation completes, restart your PC once more, then check if you can install any Python packages.
fix
Anup Thapa
  • LinkedIn

Anup Thapa is a tech writer at TechNewsToday. He mostly writes informative articles, tutorials, and troubleshooting guides related to Windows systems, networking, and computer hardware. Anup has been writing professionally for almost 5 years, and tinkering with PCs for much longer. His love for all things tech started when he got his first PC over 15 years ago. It was a Pentium IV system running Windows XP on a single 256 MB stick. He spent his formative years glued to this PC, troubleshooting any hardware or software problems he encountered by himself. Professionally, Anup has had brief forays into a variety of fields like coding, hardware installation, writing, etc. In doing so, he's worked with people of different backgrounds and skill levels, from average joes to industry leaders and experts. This has given him not just a versatile skillset, but also a unique perspective for writing that enables him to concisely communicate complex information and solve his reader's problems efficiently. You can contact him at anup@technewstoday.com

Related Posts

How to Disable NVIDIA Overlay

5 Ways to Disable NVIDIA Overlay

February 23, 2023
Notepad++-Plugins-Not-Installing

Notepad++ Plugins Not Installing? 5 Proven Ways to Fix It

February 20, 2023
MSI-Gaming-App-Not-Opening

MSI Gaming App Not Opening? 6 Ways to Fix it

February 17, 2023
MSI Afterburner Not Working

MSI Afterburner Not Working? Try These 7 Fixes

February 17, 2023
check mark in excel

How to Put Check Mark in Excel

January 20, 2023
how to find duplicate in google sheets

How to Find Duplicate in Google Sheets

January 16, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
bios-settings-for-gaming

Best BIOS Settings for Gaming

February 16, 2023
You may also like
how-to-clean-hp-printer-rollers

How to Clean HP Printer Rollers

March 3, 2023
keyboard input lag

9 Ways to Fix Keyboard Input Lag

March 3, 2023
keyboard key is stuck

How to Fix a Stuck Key on a Keyboard

March 3, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.