How to Install PIP(Python) on a Windows PC

Python has many features to help you integrate systems and work more efficiently. One of them is PIP. This package manager installs and organizes libraries written in this programming language. However, activating it on your Windows PC can be tricky.

How to Install PIP(Python) on a Windows PC

This article will show you how to install PIP in both Windows 10 and Windows 11

How To Install PIP in Windows 11

PIP is an integral part of Python. It’s so important that the developers have included it with the core program since versions 3.4 and 2.7.9 (for Python 3 and 2, respectively). This means that the manager may already be installed on your computer. You’ll need to do some digging in your Command Prompt to verify this.

Here’s how to do so.

  1. Hit the Start button and type “cmd”.
  2. Press the prompt that lets you run the program as the administrator.
  3. Enter this command: pip help
  4. Note the feedback. If the cmd tells you your PIP is unrecognized as an external or internal command, batch file, or operable program, it might not be installed. The culprit may also be an improper variable path, but let’s assume you haven’t installed the manager.

Once you verify your Windows 11 PC doesn’t have PIP, take the following steps to install it:

  1. Launch your browser and go to this website.
  2. Download and run your setup file.
  3. Press the “Customize installation” button.
  4. Tick the box next to the “PIP” section to make sure the system installs it. Newer versions may not require this – they install the manager automatically.
  5. Choose “Next” and wait for the OS to finish the installation.

PIP is now installed, but the work isn’t over yet. You may want to run it from anywhere on your computer for various purposes. However, opening it from certain locations may trigger an error. To prevent this, you’ll need to add the manager to your Environment Variables, which shouldn’t be too difficult.

  1. Open Control Panel and find “System & Security.”
  2. Navigate to your “System settings.”
  3. Go one level up by choosing “Advanced settings.”
  4. Access your “Environment Variables.”
  5. Head to “System Variables” and double-click your “Path” variable.
  6. Choose “New.”
  7. Incorporate the directory into the PIP installation folder.
  8. Hit the “OK” button to save your changes.

How to Install PIP in Windows 10

Many people haven’t switched to Windows 11 yet. As a result, they still use Python in Windows 10. Installing PIP on this platform is relatively easy.

The first method requires you to use Python’s cURL command. This feature sends the POST, GET, and PUT requests to URLs. The tool performs many critical operations, such as testing APIs and downloading files.

Installing PIP with cURL shouldn’t take more than a few clicks.

  1. Open Python and access your cmd terminal.
  2. Copy this command into the field: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  3. The request to install PIP on your computer has now been sent. Let the system complete the installation, and you’re good to go.

Installing PIP directly from Python is time-saving, but you can also try another method.

  1. Download your get-pip.py file from this website. This isn’t a conventional web page, but don’t worry about potential malware. The script is completely safe.
  2. Store the file in the Python installation folder.
  3. Change the path of the Python directory to the path of the downloaded file.
  4. Open cmd and command the PC to install PIP with this command: python get-pip.py.
  5. Wait for the process to finish.

How to Install PIP in Windows Through CMD

There’s no need to perform advanced programming to install PIP in Windows. You can use basic features to add this manager. For instance, cmd might be your best option.

This is how it works.

  1. Open a browser and head to this web page.
  2. Download the get-pip.py and save it to a folder.
  3. Open your command prompt.
  4. Find the folder that contains the downloaded file.
  5. Run this command: python get-pip.py.
  6. Your program should be ready to use in a few seconds.

If you receive a message that the system can’t find your file, double-check your directory path. You can use your “dir” command to check out the contents of individual folders.

How to Reinstall PIP

As previously mentioned, PIP can sometimes produce an error when launched. The specific error language depends on the operating system:

  • Windows – system can’t recognize PIP as an external or internal command, batch file, or operable program
  • Linux – command not found
  • macOS – command not found: PIP

These errors usually indicate the installation wasn’t performed correctly. But regardless of the cause, they’re frustrating because you can’t use the manager to organize critical packages.

Although the messages differ, they point to a common problem – the computer can’t find PIP in the locations from the path variable. This variable is part of your system variables or environment variables, depending on your device.

To resolve the issue, you’ll first need to inspect the path variable using these steps:

  1. Run your command prompt
  2. Enter the following command if you’re a Windows user: C:\> echo %PATH%
  3. Enter the following command if you’re a Linux or Mac user: $ echo $PATH

Once the command is processed, you’ll see the location on the disk where your OS is looking for your executable programs. Depending on the system, the locations are separated by a semicolon or colon.

The directory with the PIP file should be in the path variable after creating your virtual environment or installing Python. However, it can still be missing for many reasons. There’s a method that may let you reinstall PIP and add it to the right directory.

  1. Open command prompt.
  2. Type in the following command if you use Python in Windows: C:\> python -m ensurepip –upgrade
  3. Type in the following command if you use Python in Linux or macOS: $ python3 -m ensurepip –upgrade

Seamless Python Experience

The only way to take your Python skills to the next level is to have the ability to access all features. Using the above tips, you’ll easily integrate PIP, one of the most important functions of this programming language. Also, avoid frustrating errors by taking your time during the installation to double-check the directory.

Why do you use PIP in Python? Did you have any trouble installing PIP? Share your experiences in the comments section below.

Leave a Reply

Your email address will not be published.


Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.

Todays Highlights
How to See Google Search History
how to download photos from google photos