How to Install PIP on Windows in 2023 (w/ Screenshots) (2024)

In this tutorial, we will identify PIP for Python, when we use it, how to install it, how to check its version, how to configure it on Windows, and how to upgrade (or downgrade) it.

What Is PIP for Python?

PIP stands for "PIP Installs Packages", which is a recursive acronym (the one that refers to itself) coined by its creator. In more practical terms, PIP is a widely used package-management system designed to install libraries that aren't included in the standard distribution of the Python programming language on our local machine — and then manage them from the command line.

By default, PIP fetches such libraries from Python Package Index (PyPI), which is a central online repository containing a vast collection of third-party packages for various applications. If necessary, PIP can also connect to another local or online repository as long as it complies to PEP 503.

How to Install PIP on Windows

Before proceeding to PIP installation on Windows, we need to make sure that Python is already installed and PIP is not installed.

Check If Python Is Available

To verify that Python is available on our local machine, we need to open the command line (in Windows search, type cmd and press Enter to open Command Prompt or right-click on the Start button and select Windows PowerShell), type python, and press Enter.

If Python is properly installed, we will see a notification like the one below:

Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] on win32 Type "help," "copyright," "credits," or "license" for more information.

In the opposite case, we will see the following notification:

'python' is not recognized as an internal or external command, operable program or batch file.

This means that Python is either not installed on our local machine or is installed incorrectly and needs setting system variables. If you need further guidance on how to properly install Python on Windows, you can use this article in the Dataquest blog: Tutorial: Installing Python on Windows.

Check If PIP Is Already Installed

Now that we verified that Python is installed on Windows (or, if it was not, have installed it), let's check if PIP is already installed on our system.

The latest releases Python 3.4+ and Python 2.7.9+, as well as the virtual environments virtualenv and pyvenv, automatically ship with PIP (we can check our Python version by running python --version or python -V in the command line). However, the older versions of Python don't have this advantage by default. If we use an older Python release and cannot upgrade it for some reason (e.g., when we have to work with the projects made in old versions of Python incompatible with the newer versions), we may need to manually download and install PIP on Windows.

To check if PIP is already installed on Windows, we should open the command line again, type pip, and press Enter.

If PIP is installed, we will receive a long notification explaining the program usage, all the available commands and options. Otherwise, if PIP is not installed, the output will be:

'pip' is not recognized as an internal or external command, operable program or batch file.

This is exactly the case when we have to manually install PIP on Windows.

Download PIP

Before installing PIP, we have to download the get-pip.py file. We can do this two ways:

  1. Go to https://bootstrap.pypa.io/get-pip.py and save this file as get-pip.py in the same folder where Python is located.
    By default, the Python installation is stored in the folder AppData. The entire path could look like the following:

C:\Users\User\AppData\Local\Programs\Python\Python310

The folder User can be called differently on a particular machine, and also the final folder in the above path depends on the version of Python. In our case – Python 3.10:

How to Install PIP on Windows in 2023 (w/ Screenshots) (1)

  1. Open the command line and navigate to the folder where Python is stored using the cd command (see the previous point if you are not sure about Python's location).

Now, run the following curl command:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

How to Install PIP on Windows in 2023 (w/ Screenshots) (2)

Install PIP on Windows

Now that we downloaded the get-pip.py file, we need to complete the followings steps.

  1. Open the command line
  2. Navigate to the folder where Python and the get-pip.py file are stored using the cd command
  3. Launch the installer by running the following command:

python get-pip.py

How to Install PIP on Windows in 2023 (w/ Screenshots) (3)

After a quick installation process, a message appears with all the details of the installation, and the final line appears as follows:

Successfully installed pip-22.0.1 wheel-0.37.1

PIP is now successfully installed on Windows.

Verify the PIP Installation Process and Check the PIP Version

To double-check if PIP has been installed properly and check its version, we need to run one of these commands in the command line:

pip --version

or

pip -V

If PIP is installed correctly, we will see a message indicating the version of PIP and its location on the local system, like the following:

pip 22.0.2 from C:\Users\Utente\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10).

If instead, an error is thrown, it is necessary to repeat the installation process.

Add PIP to Windows Environment Variables

To be able to run PIP without issues from any folder in the command line (rather than navigating every time to the folder where the PIP installer is stored, as we did earlier), we have to add the path to the folder with the get-pip.py file to Windows environment variables. This is especially important in that rare case when, we have installed several versions of Python, including old ones. In this situation, to avoid installing PIP separately for each old version of Python, we should install it only for one of them and then perform the following steps:

  • Open Control Panel (typing it in Windows search), select System and Security, then select System.
  • Go to the end of the opened window and select Advanced system settings:

How to Install PIP on Windows in 2023 (w/ Screenshots) (4)

  • Click Environment Variables:

How to Install PIP on Windows in 2023 (w/ Screenshots) (5)

  • In the System variables section, find and double-click the variable Path:

How to Install PIP on Windows in 2023 (w/ Screenshots) (6)

  • Click New and add the path to the folder where the PIP installer is stored:

How to Install PIP on Windows in 2023 (w/ Screenshots) (7)

How to Install PIP on Windows in 2023 (w/ Screenshots) (8)

  • Click OK to confirm modifications.

Upgrade PIP on Windows

Sometimes, we may need to update PIP on Windows to the latest version to keep it up-to-date and working flawlessly. For this purpose, we can run the following command in the command line:

python -m pip install --upgrade pip

As a result, the old version of PIP will be uninstalled and the most recent release will be installed.

Downgrade PIP on Windows

We can also want to downgrade PIP to a specific older version. This operation may be necessary in certain cases, for example, if a new version works with some compatibility issues. To downgrade PIP on Windows, we need to open the command line and run a command with the following syntax:

python -m pip install pip==<version>

Let's say, we want to downgrade it to v20.3. Then the exact command will be:
python -m pip install pip==20.3

After downgrading PIP, we can verify that we now have the necessary version of it by running python -V.

Conclusion

In this tutorial we covered various topics regarding the installation of PIP on Windows:

  • How PIP works
  • How to check if Python and PIP are already installed
  • When it may be necessary to manually install PIP on Windows
  • How to download and install PIP on Windows
  • How to verify if PIP has been successfully installed and check its version
  • How to configure PIP on Windows and when it may be necessary
  • When and how to upgrade or downgrade PIP on Windows

Now that we have PIP properly installed on Windows, we can begin using it to manage Python libraries. Let's start with running pip help in the command line and exploring the available commands and options for this program.

How to Install PIP on Windows in 2023 (w/ Screenshots) (2024)

FAQs

How to install pip manually? ›

Installing pip on Windows Server is similar to installing on Windows. Download Python from python.org, run the installer, and ensure to select the “Add Python to PATH” option during installation. Then, open Command Prompt (cmd) and use python -m ensurepip –upgrade to install or upgrade pip.

Why is pip not running on Windows? ›

First, make sure pip is installed on your system, as this may be the reason it is unable to be found. If you've just installed Python, you may want to rerun your Python installer and make sure you check the box “Add Python to PATH.” Next, click “Customize installation” and check the “pip” box under Optional Features.

Where is the pip config file in Windows? ›

The PIP configuration file can be found at %HOME%\pip\pip. ini. Pip also contains a legacy per-user configuration file. This file is located at %APPDATA%\pip\pip.

Where are pip packages installed in Windows 10? ›

The pip command is a tool used to install Python packages from the PyPI repository. It's important to note that the packages installed with pip will be installed in the user's home directory. This is usually in the C:\Users\Username\AppData\Local\Programs\Python directory, but it can vary depending on the user's setup.

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.

Top Articles
Tire Defect, Blowouts & Tread Separation Litigation | Farrar & Ball
What do you do if the drain of your washing machine is clogged? - Coolblue
7 C's of Communication | The Effective Communication Checklist
Great Clips Mount Airy Nc
Artem The Gambler
Best Pizza Novato
Lifewitceee
Linkvertise Bypass 2023
The Realcaca Girl Leaked
Victoria Secret Comenity Easy Pay
Big Y Digital Coupon App
Jefferson County Ky Pva
Https Www E Access Att Com Myworklife
Atrium Shift Select
Strange World Showtimes Near Amc Braintree 10
George The Animal Steele Gif
Craigslist Farm And Garden Cincinnati Ohio
7 Fly Traps For Effective Pest Control
Mail.zsthost Change Password
Define Percosivism
Craigslist Free Stuff Greensboro Nc
Extra Virgin Coconut Oil Walmart
Check From Po Box 1111 Charlotte Nc 28201
Morristown Daily Record Obituary
VERHUURD: Barentszstraat 12 in 'S-Gravenhage 2518 XG: Woonhuis.
Putin advierte que si se permite a Ucrania usar misiles de largo alcance, los países de la OTAN estarán en guerra con Rusia - BBC News Mundo
SN100C, An Australia Trademark of Nihon Superior Co., Ltd.. Application Number: 2480607 :: Trademark Elite Trademarks
Teekay Vop
Everything To Know About N Scale Model Trains - My Hobby Models
Urban Dictionary Fov
1145 Barnett Drive
6892697335
Craigslist Hunting Land For Lease In Ga
4Oxfun
1964 Impala For Sale Craigslist
Matlab Kruskal Wallis
Orange Pill 44 291
Cheap Motorcycles Craigslist
Kips Sunshine Kwik Lube
Metro By T Mobile Sign In
Hisense Ht5021Kp Manual
Honda Ruckus Fuse Box Diagram
Ticket To Paradise Showtimes Near Regal Citrus Park
Puretalkusa.com/Amac
Ghareeb Nawaz Texas Menu
UT Announces Physician Assistant Medicine Program
Ups Customer Center Locations
Bellelement.com Review: Real Store or A Scam? Read This
Makes A Successful Catch Maybe Crossword Clue
Kenmore Coldspot Model 106 Light Bulb Replacement
WHAT WE CAN DO | Arizona Tile
Latest Posts
Article information

Author: Terrell Hackett

Last Updated:

Views: 5743

Rating: 4.1 / 5 (72 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Terrell Hackett

Birthday: 1992-03-17

Address: Suite 453 459 Gibson Squares, East Adriane, AK 71925-5692

Phone: +21811810803470

Job: Chief Representative

Hobby: Board games, Rock climbing, Ghost hunting, Origami, Kabaddi, Mushroom hunting, Gaming

Introduction: My name is Terrell Hackett, I am a gleaming, brainy, courageous, helpful, healthy, cooperative, graceful person who loves writing and wants to share my knowledge and understanding with you.