Download pip for windows

View this page

Toggle table of contents sidebar

Usually, pip is automatically installed if you are:

  • working in a
    virtual environment

  • using Python downloaded from python.org

  • using Python that has not been modified by a redistributor to remove
    ensurepip

Supported Methods¶

If your Python environment does not have pip installed, there are 2 mechanisms
to install pip supported directly by pip’s maintainers:

  • ensurepip

  • get-pip.py

ensurepip

Python comes with an ensurepip module[1], which can install pip in
a Python environment.

Linux

$ python -m ensurepip --upgrade

MacOS

$ python -m ensurepip --upgrade

Windows

C:> py -m ensurepip --upgrade

More details about how ensurepip works and how it can be used, is
available in the standard library documentation.

get-pip.py

This is a Python script that uses some bootstrapping logic to install
pip.

  • Download the script, from https://bootstrap.pypa.io/get-pip.py.

  • Open a terminal/command prompt, cd to the folder containing the
    get-pip.py file and run:

More details about this script can be found in pypa/get-pip’s README.

Standalone zip application¶

Note

The zip application is currently experimental. We test that pip runs correctly
in this form, but it is possible that there could be issues in some situations.
We will accept bug reports in such cases, but for now the zip application should
not be used in production environments.

In addition to installing pip in your environment, pip is available as a
standalone zip application.
This can be downloaded from https://bootstrap.pypa.io/pip/pip.pyz. There are
also zip applications for specific pip versions, named pip-X.Y.Z.pyz.

The zip application can be run using any supported version of Python:

If run directly:

Linux

$ chmod +x ./pip.pyz
$ ./pip.pyz

then the currently active Python interpreter will be used.

MacOS

$ chmod +x ./pip.pyz
$ ./pip.pyz

then the currently active Python interpreter will be used.

Windows

then the currently active Python interpreter will be used.

You may need to configure your system to recognise the .pyz extension
before this will work.

Alternative Methods¶

Depending on how you installed Python, there might be other mechanisms
available to you for installing pip such as
using Linux package managers.

These mechanisms are provided by redistributors of pip, who may have modified
pip to change its behaviour. This has been a frequent source of user confusion,
since it causes a mismatch between documented behaviour in this documentation
and how pip works after those modifications.

If you face issues when using Python and pip installed using these mechanisms,
it is recommended to request for support from the relevant provider (eg: Linux
distro community, cloud provider support channels, etc).

Upgrading pip

Upgrade your pip by running:

Linux

$ python -m pip install --upgrade pip

MacOS

$ python -m pip install --upgrade pip

Windows

C:> py -m pip install --upgrade pip

Compatibility¶

The current version of pip works on:

  • Windows, Linux and macOS.

  • CPython 3.9, 3.10, 3.11, 3.12, 3.13, and latest PyPy3.

pip is tested to work on the latest patch version of the Python interpreter,
for each of the minor versions listed above. Previous patch versions are
supported on a best effort approach.

Other operating systems and Python versions are not supported by pip’s
maintainers.

Users who are on unsupported platforms should be aware that if they hit issues, they may have to resolve them for themselves. If they received pip from a source which provides support for their platform, they should request pip support from that source.


Project description

Project details

Download files

Download the file for your platform. If you’re not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file pip-25.1.1.tar.gz.

File metadata

  • Download URL:
    pip-25.1.1.tar.gz

  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pip-25.1.1.tar.gz

Algorithm Hash digest
SHA256 3de45d411d308d5054c2168185d8da7f9a2cd753dbac8acbfa88a8909ecd9077
MD5 1fb80f511aec07d971dd7e6707a1235d
BLAKE2b-256 59de241caa0ca606f2ec5fe0c1f4261b0465df78d786a38da693864a116c37f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pip-25.1.1.tar.gz:

Publisher:

release.yml on pypa/pip

Attestations:

Values shown here reflect the state when the release was signed and may no longer be current.

  • Statement:

    • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: pip-25.1.1.tar.gz
    • Subject digest: 3de45d411d308d5054c2168185d8da7f9a2cd753dbac8acbfa88a8909ecd9077
    • Sigstore transparency entry: 206152264
    • Sigstore integration time:

    Source repository:

    • Permalink:
      pypa/pip@01857ef79f59a98db592bacb6e7b48f354528c80
    • Branch / Tag:
      refs/tags/25.1.1
    • Owner: https://github.com/pypa
    • Access: public

    Publication detail:

    • Token Issuer: https://token.actions.githubusercontent.com
    • Runner Environment: github-hosted
    • Publication workflow:

      release.yml@01857ef79f59a98db592bacb6e7b48f354528c80

    • Trigger Event: push

File details

Details for the file pip-25.1.1-py3-none-any.whl.

File metadata

  • Download URL:
    pip-25.1.1-py3-none-any.whl

  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pip-25.1.1-py3-none-any.whl

Algorithm Hash digest
SHA256 2913a38a2abf4ea6b64ab507bd9e967f3b53dc1ede74b01b0931e1ce548751af
MD5 6a01d861bf88ee075c6942419a04839d
BLAKE2b-256 29a2d40fb2460e883eca5199c62cfc2463fd261f760556ae6290f88488c362c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pip-25.1.1-py3-none-any.whl:

Publisher:

release.yml on pypa/pip

Attestations:

Values shown here reflect the state when the release was signed and may no longer be current.

  • Statement:

    • Statement type: https://in-toto.io/Statement/v1
    • Predicate type: https://docs.pypi.org/attestations/publish/v1
    • Subject name: pip-25.1.1-py3-none-any.whl
    • Subject digest: 2913a38a2abf4ea6b64ab507bd9e967f3b53dc1ede74b01b0931e1ce548751af
    • Sigstore transparency entry: 206152266
    • Sigstore integration time:

    Source repository:

    • Permalink:
      pypa/pip@01857ef79f59a98db592bacb6e7b48f354528c80
    • Branch / Tag:
      refs/tags/25.1.1
    • Owner: https://github.com/pypa
    • Access: public

    Publication detail:

    • Token Issuer: https://token.actions.githubusercontent.com
    • Runner Environment: github-hosted
    • Publication workflow:

      release.yml@01857ef79f59a98db592bacb6e7b48f354528c80

    • Trigger Event: push

PIP stands for “Preferred Installer Program” or “Pip Installs Packages” and is a standard package manager for Python that enables users to install and manage additional libraries and dependencies not included in the standard Python library. To use PIP, you must install Python on your Windows machine.

This article provides a step-by-step guide on how to install and configure PIP on Windows, along with tips for managing Python packages effectively.

Prerequisities:

  • Windows (11, 10, 8 , 7)
  • Python (version 3.13.1)
  • Admin Rights

Verify Python Installation

Before installing PIP, you need to ensure that Python is already installed on your system. You can check this by running the following command in the command prompt

python --version

If it is installed, You will see something like this:

Python 3.13.1

If it is not installed, you can install it with the help of this article: How to install Python on Windows.

To get more knowledge about Python packages or modules, get hands-on in our Python course. This course will offer you basic to advanced insights into Python programming.

Installing Python PIP on Windows

Installing pip in Windows is very easy. You just need to follow the given steps to install pip and some additional steps to finally use it. By these steps, we can see how to pip install on Windows. To ensure proper installation and use of pip we need to tick this checklist to install pip Python:

  1. Download PIP
  2. Install PIP
  3. Verify Installation
  4. Add pip to environment variables

1. Download PIP

To install PIP, you’ll need the get-pip.py script. Let’s understand this in the below-mentioned detailed steps:

Method 1. Install Python pip using Python cURL

Curl is a UNIX command that is used to send the PUT, GET, and POST requests to a URL. This tool is utilized for downloading files, testing REST APIs, etc.

Note: It will download the get-pip.py file.

Follow these instructions to pip windows install:

Step 1: Open Command Prompt

Press Win + R and type CMD and hit the enter button to open the cmd terminal using the Windows keyboard shortcut or alternatively, click on Start Menu and type “Command Prompt” and hit the enter button.

cmd-as-admin

Start Menu – Command Prompt – Run as admin

2. Installing PIP

Here, we have now used cURL to transfer the data requests, let’s check out the executed command in here:

Step 2: Transfer Data Request from a Server

In python, a curl is a tool for transferring data requests to and from a server. Use the following command to request:

https://bootstrap.pypa.io/get-pip.py
python get-pip.py

Method 2. Manually Download and Install Python PIP on Windows

Python pip must be manually installed on Windows. We can pip install in Python by manually installing it. You might need to use the correct version of the file from pypa.io if you’re using an earlier version of Python or pip. Get the file and save it to a folder on your PC.

1.1 Download PIP

This is another method for downloading PIP manually. Let’s check down the steps below:

Step 1: Download the get-pip-py Script

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 Directory

Change the current path of the directory in the command line to the path of the directory where the above file exists.

2.2 Installing PIP

Now, in the next two steps, we will understand how you can install PIP in Python environment. Let’s check them out:

Step 3: Execute the command to Install Python

get-pip.py is a bootstrapping script that enables users to install pip in Python environments. Here, we are installing pip python3. Run the command given below:

python get-pip.py

Step 4: Wait Untill You Get the Confirmation

Now wait through the installation process. Voila! pip is now installed on your system.

3. Verify the PIP Installation

One can easily verify if the pip has been installed correctly by performing a version check on the same. Just go to the command line and execute the following command:

pip -Vorpip --version

4. Adding PIP to Windows Environment Variables

If you are facing any path error then you can follow the following steps to add the pip to your PATH. You can follow the following steps to adding pip to path Windows 10 and set the Path:

Step 1: Locate te PIP installation directory

  • You are likely to get this in: C\Python33\Scripts\

Step 2: Add to the PATH

  • Go to System and Security > System in the Control Panel
  • On the left side, click the Advanced system settings link.
  • Then, select Environment Variables.
  • Double-click the PATH variable under System Variables.
  • Click New, and add the directory where pip is installed, e.g. C:\Python33\Scripts\ and select OK.

Step 3: Verify

  • Open the command prompt and type the following command to verify the PIP installation:
pip --version

How to Upgrade Pip On Windows

pip can be upgraded using the following command:

python -m pip install -U pip

How to Downgrad PIP on Windows

It may happen sometimes that your current pip version is not supporting your current version of python or machine.

To fix that, you can downgrade your pip version with the help of Python pip install command and the following command.

Note: You can mention the version you want to install

python -m pip install pip==17.0

If you followed these steps, you will not face any issues while installing pip on windows. We have also discussed methods to upgrade or downgrade pip version in case you face any issues.

Managing Python Packages with PIP

Once PIP is installed, you can use it to manage Python packages. Here are some common commands:

  • Install a Package: To install a package, use:
    pip install package_name
  • Uninstall a Package: To remove a package, use:
    pip uninstall package_name
  • List Installed Packages: To see all installed packages, use:
    pip list
  • Show Package Information: To get detailed information about a package, use:
    pip show package_name
  • Search for Packages: To search for packages in the Python Package Index (PyPI), use:
    pip search package_name

Troubleshooting Tips

1. Python Not Recognized

Always ensure that Python is added to the PATH during the installation. In case, if it’s not, you can modify the PATH manually.

2. Permission Errors

Try running the Command Prompt as an administrator access.

3. SSL Errors

Ensure that te date and time is correct of your system (as SSL certificates usually relies on actual system clocks.)

Also Read

  • How to install PIP in Linux?
  • How to install pip in macOS?
  • Download and install pip Latest Version

Conclusion

By following this guide, you can successfully download, install, upgrade, downgrade, and manage PIP on Windows seamlessly. With PIP installed in your system, you can easily manage to Python packages and enhance your Python development environment. Whether you’re a beginner or an experienced developer, understanding how to work with PIP is essential for efficient Python programming.

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:

  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

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

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:
  • Click Environment Variables:
  • In the System variables section, find and double-click the variable Path:
  • Click New and add the path to the folder where the PIP installer is stored:

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

Recently, we wrote a detailed tutorial on how to build your own AI chatbot with ChatGPT API. And for that project, we used Python and Pip to run several essential libraries. So if you are also getting started with Python for a project, make sure to install Pip on your Windows PC. You will be able to download many of the dependencies and libraries in a few seconds. On that note, let’s go ahead and learn how to install Pip on Windows 11 and 10.

What is Pip?

How to Install Pip on Windows

Pip is the package manager for Python. In simple terms, it basically allows you to install and manage millions of Python packages and libraries from the command line. It connects to the Python Package Index (PyPI) repository where you can find thousands of projects, apps, software development kits, clients, and more. If you are developing a project, and if you need some dependencies which are not part of the standard Python distribution, Pip can add them for you effortlessly. Simply put, Pip is an integral part of Python and to get started, you must install both of them.

Check If Pip Is Already Installed on Windows

If you have installed Python, you may already have Pip installed on your system. So before you move to the installation steps, let’s check if Pip is already installed on Windows or not.

1. Open Command Prompt or Windows Terminal. After that, run the below command. If you get the Pip version as the output, it means Pip is already installed on your PC. You can scroll down and learn how to upgrade Pip to the latest version on Windows.

pip --version
How to Install Pip on Windows

2. In case, you get errors like “Command not found” or “‘Pip’ is not recognized as an internal or external command, operable program or batch file.”, it means that Pip is not properly installed on your PC. Follow the below steps to install Pip and configure its path as well.

How to Install Pip on Windows

Install Pip with Python

To install Pip on Windows, you need to install Python only. When you install Python using the desktop setup file, Pip is also sideloaded on Windows. Here is how you can set up Pip on Windows.

1. First and foremost, move to this link and download the latest version of Python for Windows.

How to Install Pip on Windows

2. After that, double-click on the setup file. Once the installer appears, make sure to enable the checkbox next to “Add Python.exe to PATH“.

Install Pip on Windows 11 and 10 (2023)

2. After that, click on “Customize installation” and make sure “pip” is enabled along with other options. Click on “Next” and then “Install”.

Install Pip on Windows 11 and 10 (2023)

3. Now, Python along with Pip, both will get installed on your Windows PC.

Install Pip on Windows 11 and 10 (2023)

Install Pip via Command Line

You can also manually install Pip on Windows from the command line either using CMD or Windows Terminal. Follow the steps below.

1. Right-click on this link and then choose “Save link as…”.

Install Pip on Windows From Command Line

2. Now, save it as “get-pip.py” file in the “Downloads” folder.

Install Pip on Windows From Command Line

3. Next, right-click on the “get-pip.py” file and choose “Copy as path”.

Install Pip on Windows From Command Line

4. Finally, open the Terminal and execute it in the below fashion. Enter python, add a space, and then paste the path. After that, hit Enter and Pip will be installed on your Windows 11/10 computer.

python "C:\Users\mearj\Downloads\get-pip.py"
Install Pip on Windows From Command Line

5. Apart from that, you can also run this command to download and install Pip on a Windows PC using the “ensurepip” module.

python -m ensurepip --upgrade
Install Pip on Windows From Command Line

Verify Pip Installation

1. To check if everything went right, open Windows Terminal or Command Prompt and run the below commands. If the installation was successful, the first command will display the Python version, and the second command will show the Pip version currently installed on your PC.

python --version
pip --version
Install Pip on Windows 11 and 10 (2023)

2. You can also type the below command to find all the commands pip takes as an argument. If it returns a long list of command options, you are good to go.

python --help
pip --help

Upgrade or Downgrade Pip on Windows

1. After installation, run the below command in the Terminal to upgrade Pip to the latest version on Windows. Here’s what the syntax looks like:

python -m pip install -U pip
Upgrade or Downgrade Pip on Windows

2. In case you want to downgrade Pip to a specific version, run the below command:

python -m pip install pip==19.0
Upgrade or Downgrade Pip on Windows

How to Add Python and Pip to PATH on Windows 11 and 10

After installing and running the Python or Pip command on Windows if you get errors such as “Pip is not recognized as an internal or external command,” or “Python is not recognized as an internal or external command,” or simply “Python not found”, do not worry. It means that Python or Pip may have been installed on your Windows PC, but their paths have not been configured correctly. We need to add their directories as a global Windows environment variable. Here is how to do it.

1. First of all, press “Windows + R” to open the Run prompt and paste the below path, and hit Enter.

%localappdata%\Programs\Python

2. After that, open another “Python3XX” folder. Now, copy the whole path from the address bar. This is Python’s path you need to add as an environment variable.

Fix the "Python is not recognized as an internal or external command" Error on Windows

3. Next, move to the “Scripts” folder and click on the “Address bar”. Now, copy the whole path again. This is Pip’s path you need to add as an environment variable.

How to Add Pip to PATH on Windows 11

4. After you get paths for both Python and Pip, open the Run prompt again by pressing “Windows + R”. Here, type sysdm.cpl and hit Enter. This will directly open the Advanced System Settings.

5. Move to the “Advanced” tab, and click on “Environment Variables” at the bottom.

How to Add Pip to PATH on Windows 11

6. Next, under the “User variables for …” section, select “Path” and click on the “Edit…” button.

How to Add Pip to PATH on Windows 11

7. Here, click on “New” and add both the paths you copied above on the left side. Now, click on “OK”. Keep in mind, the paths will be different for each PC. This will add python and pip as global environment variables on your PC.

python and pip path environment variables

7. Finally, open Command Prompt or Windows Terminal and run a Python/ Pip command. For example – You can use the pip command to install the OpenAPI on your Windows PC, and it won’t display an error.

python --version
pip install openai

So this is how you can download and install Pip on Windows 11 or 10. I would suggest downloading the official installer from Python’s website and installing it to steer clear of any errors. It works for me 100% of the time. Anyway, that is all from us. If you want to learn how to install Python in Ubuntu Linux, head to our guide for more details. And to find the best Python learning courses, we have a curated list ready for you. Finally, if you have any questions, let us know in the comment section below.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Acpi 808622c1 windows 7 x86
  • Win32kbase sys windows 10 ошибка
  • Microsoft windows 10 pro ggwa
  • No boot disk has been detected or the disk has failed как исправить windows 10
  • Импорт шрифтов в windows 10