How to Install Pip on Windows (2024)

Pip is the standard package manager for Python. It enables the installation and management of third party packages that provide features and functionality not contained in the Python standard library. Newer versions of Python (Python 2 >= v2.7.9 or Python 3 >= v3.4) come prepackaged with pip by default. Pip is also included in the virtual environments created by virtualenv and pyvenv.
But if you’re using an older version of Python, pip will need to be manually installed. This tutorial steps through how to install Pip on Windows, and explains how to keep it updated.

Prerequisites for Pip Installation

  1. Check if pip is already installed by running the following on the command line:
pip --version

or

pip -V

If pip is installed, you’ll see something similar to the following output:

C:usersjdoe>pip --versionPip 19.2.3 from c:usersjdoeappdatalocalprogramspythonpython38-32libsite-packagespip (python 3.8)
  1. Verify that Python is installed. If pip is not installed, you can confirm that Python is available on your local machine and determine the version by running the following command:
python --version

You should see something like the following if Python is installed:

C:usersjdoe>pip --versionPython 3.8.0

If you do not have a version of Python installed, you can quickly download and install a recent version of ActivePython.

How to Install Pip with get-pip.py

  1. To manually install pip on Windows, you will need a copy of get-pip.py. For older Python versions, you may need to use the appropriate version of the file from pypa.org. Download the file to a folder on your computer, or use the curl command:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  1. Next, run the following command to install pip:
python get-pip.py

If the file is not found, you may need to first navigate to the directory containing the get-pip.py file. On installation, you should see something similar to the following:

Installing collected packages: pip, setuptools, wheelThe script wheel.exe is installed in ‘C:Python33Scripts’ which is not on PATH.Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.Successfully installed pip-10.0.1 setuptools-39.2.0 wheel-0.29.0

This command will also install setuptools and wheel if they are not already installed. Setuptools is a suite of configuration enhancements to the Python distutils that facilitates building Python distributions. It is required to install source distributions, or “sdists,” a distribution format that provides the metadata and source files needed for tools like pip.

  1. Verify that pip is installed by running the previous command to check the version. Navigate to the installation location (C:Python33Scripts by default) and run:
pip --version

For further instructions on how to install packages with pip, refer to our guide to Python Package Installation on Windows

Adding PIP to Windows Environment Variables

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you’re trying to run in your current directory. In most cases, you’ll need to navigate to the directory in which the tool is installed before you can run the command to launch it.
If you’d rather run pip (or other tools) from any location, you’ll need to add the directory in which it’s installed as a PATH environment variable by doing the following:

  1. Open up the Control Panel and navigate to System and Security > System
  2. Click on the Advanced system settings link on the left panel
  3. Click Environment Variables.
  4. Under System Variables, double-click the variable PATH.
  5. Click New, and add the directory where pip is installed, e.g. C:Python33Scripts, and select OK.

How to Install Pip on Windows (1)

Upgrading Pip on Windows

Pip is a key tool in the Python ecosystem, and as such is updated on a regular basis. Changes can always be found in the release notes for each version. In order to keep your version of pip up to date, you can run the following on the command line:

python -m pip install -U pip

This command will uninstall the outdated version of pip first, and then download the most current iteration.
It’s also possible to downgrade to a previous version of pip, in case a newer version is causing unexpected compatibility errors. For example, to downgrade to pip v18.0 run the following command:

python -m pip install pip==18.0

Next Steps

Try the ActiveState Platform to build Python packages faster and safer. Create a custom Python runtime for your next project. Pick just the packages you need, and we’ll automatically resolve all dependencies, build it (including C code) and package it for your platform.

How ActiveState Can Help

ActiveState provides a unified cross-platform toolchain for modern Python package management. It can replace the complex and hard-to-maintain in-house solutions built from multiple package managers, environment management tools and other solutions.
By adopting the ActiveState Platform, developers can:

  • Automated building of packages from source, including link C libraries without the need for a local build environment.
  • Automated resolution of dependencies (or suggestions on how to manually resolve conflicts), ensuring that your environment always contains a set of known good dependencies that work together.
  • Central management of a single source of truth for your environment that can be deployed with a single command to all development and CI/CD environments, ensuring consistent reproducibility.
  • Automated installation of virtual Python environments on Windows or Linux without requiring prior setup.
  • The ability to find, fix and automatically rebuild vulnerable environments, thereby enhancing security and dramatically reducing time and effort involved in resolving CVEs.
  • Visually seeing which versions of which packages are approved for use, thereby taking the guesswork out of development.

Those that prefer to work from the command line can leverage the ActiveState Platform’s CLI, the State Tool, which acts as a universal package manager for Python, and provides access to most of the features offered by the Platform.

How to Install Pip on Windows (2)

Modern Python Package Management

ActiveState provides a unified cross-platform toolchain for modern Python package management. It can replace the complex and hard-to-maintain in-house solutions built from multiple package managers, environment management tools and other solutions.
By adopting the ActiveState Platform, developers can:

  • Increase the security of Python environments
  • Improve the transparency of your open source supply chain
  • Dramatically reduce package and environment management overhead
  • Eliminate dependency hell
  • Reduce “works on my machine” issues

Ultimately, developers that are willing to adopt the ActiveState Platform will spend less time wrestling with tooling and more time focused on doing what they do best: coding.
To try the ActiveState Platform for yourself,sign-upfor a free account.

How to Install Pip on Windows (2024)

FAQs

How to pip install on Windows? ›

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

Why can't I install pip on Windows? ›

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).

What is the alternative to pip install in Windows? ›

uv is a turbo-fast Python package installer and resolver, written in Rust as a high-speed drop-in substitute for pip, pip-tools, and virtualenv. It's 10–100x faster than pip and pip-tools: with a warm cache, uv installs are near-instant. Works Everywhere: supports macOS, Linux, and Windows.

How do I ensure that pip is installed? ›

After the program runs, use the command pip --version (or pip3 --version ) to make sure pip was installed correctly.

How to check if pip is installed in Windows? ›

How to check if pip is installed on Windows and Mac: In Command Prompt on Windows or Terminal on Mac, type and enter: pip --version . If pip version is shown then it is installed.

What is pip install in Python? ›

Developed in 2008, pip (an acronym of “pip Install Packages”) is today the standard tool for installing Python packages and their dependencies in a secure manner. Most recent distributions of Python come with pip preinstalled. Python 2.7. 9 and Python 3.4 and later versions include pip by default.

How to enable pip in Windows 10? ›

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as Python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!

How do I install and update pip on Windows? ›

How To Upgrade PIP
  1. Step 1: Open Command Prompt on your Windows system, macOS, or terminal in Linux. For Windows: Enter Windows+R and type CMD and enter. For Mac: Press command + space key, type terminal, and hit the enter button. ...
  2. Step 2: Execute the following command: python -m Pip install --upgrade Pip.
May 8, 2023

How to install pip environment in windows? ›

Pip and virtualenv on Windows
  1. Install pip. Pip (Python Package Installer), official documentation for pip. ...
  2. virtualenv. In your Command Prompt enter: ...
  3. Launch virtualenv. In your Command Prompt navigate to your project: ...
  4. Another way to install pip.

What is the difference between pip download and pip install? ›

pip download does the same resolution and downloading as pip install , but instead of installing the dependencies, it collects the downloaded distributions into the directory provided (defaulting to the current directory).

What is the latest version of pip for Windows? ›

pip 24.2. The PyPA recommended tool for installing Python packages.

Does Windows support pip? ›

Picture-in-Picture is an important feature on Windows and Android computers. It allows you to watch videos while they float on the screen of your desktop or smartphone. Microsoft Edge has PIP on Android and all other platforms to enable you to float videos on your screen on mini mode.

How to install pip itself? ›

Ensure you can run pip from the command line

Run python get-pip.py . [2] This will install or upgrade pip. Additionally, it will install Setuptools and wheel if they're not installed already. Be cautious if you're using a Python install that's managed by your operating system or another package manager.

Is pip always installed? ›

It's not installed by default with the interpreter. You can verify that pip is available by looking for the pip3 executable on your system.

What to do if pip install is not working? ›

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.
Sep 4, 2024

How do I install Python in Windows? ›

How to Install Python on Windows
  1. Step 1: Select Python Version.
  2. Step 2: Download Python Executable Installer.
  3. Step 3: Run Executable Installer.
  4. Step 4: Add Python to Path (Optional)
  5. Step 5: Verify Python Was Installed on Windows.
  6. Step 6: Verify PIP Was Installed.
  7. Step 7: Install virtualenv (Optional)
Dec 5, 2023

How to install Python in terminal? ›

  1. Step 1: Download the Python Source Code.
  2. Step 2: Prepare Your System for Building Python.
  3. Step 3: Build and Install Python on Your System.
  4. Step 4: Verify Your Python Installation.
Aug 26, 2024

Top Articles
How to Read A Key Number
Blue-Chip Bulldozers: 7 Stock Giants to Plow Through a Wall of Worries
Nullreferenceexception 7 Days To Die
Week 2 Defense (DEF) Streamers, Starters & Rankings: 2024 Fantasy Tiers, Rankings
Beacon Schnider
Seething Storm 5E
15 Types of Pancake Recipes from Across the Globe | EUROSPAR NI
Vanadium Conan Exiles
B67 Bus Time
2013 Chevy Cruze Coolant Hose Diagram
Dityship
Craigslist Dog Kennels For Sale
Wildflower1967
10 Best Places to Go and Things to Know for a Trip to the Hickory M...
Craigslist Blackshear Ga
Costco Gas Foster City
Daily Voice Tarrytown
Willam Belli's Husband
1-833-955-4522
Craigslist West Valley
White Pages Corpus Christi
Nordstrom Rack Glendale Photos
Project, Time & Expense Tracking Software for Business
Iroquois Amphitheater Louisville Ky Seating Chart
Rust Belt Revival Auctions
Sessional Dates U Of T
R/Airforcerecruits
Wku Lpn To Rn
Evil Dead Rise Ending Explained
Rgb Bird Flop
Mississippi Craigslist
Stouffville Tribune (Stouffville, ON), March 27, 1947, p. 1
Wheeling Matinee Results
Home Auctions - Real Estate Auctions
Capital Hall 6 Base Layout
Robot or human?
How to Watch the X Trilogy Starring Mia Goth in Chronological Order
Compress PDF - quick, online, free
Spinning Gold Showtimes Near Emagine Birch Run
Top-ranked Wisconsin beats Marquette in front of record volleyball crowd at Fiserv Forum. What we learned.
Zero Sievert Coop
Gpa Calculator Georgia Tech
All Weapon Perks and Status Effects - Conan Exiles | Game...
Scythe Banned Combos
Unblocked Games 6X Snow Rider
bot .com Project by super soph
Clock Batteries Perhaps Crossword Clue
Is Chanel West Coast Pregnant Due Date
Acuity Eye Group - La Quinta Photos
Ewwwww Gif
Laurel Hubbard’s Olympic dream dies under the world’s gaze
Latest Posts
Article information

Author: Msgr. Benton Quitzon

Last Updated:

Views: 5617

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Msgr. Benton Quitzon

Birthday: 2001-08-13

Address: 96487 Kris Cliff, Teresiafurt, WI 95201

Phone: +9418513585781

Job: Senior Designer

Hobby: Calligraphy, Rowing, Vacation, Geocaching, Web surfing, Electronics, Electronics

Introduction: My name is Msgr. Benton Quitzon, I am a comfortable, charming, thankful, happy, adventurous, handsome, precious person who loves writing and wants to share my knowledge and understanding with you.