Windows where is pip

Skip to content

Where can I find Python PIP in windows ?

Python PIP is a package manager. It is used to install and manage the python software modules. Here we will see where can we find Python PIP in windows and How to install PIP on Windows 10 operating system.

Where can I find Python PIP in windows?

If you have installed Python version 3.4 or later, PIP is included by default, that means if you are on below 3.4 version of python you have to install PIP manually.

To find the PIP package manager in windows navigate the below path and check for pip –version

C:\Users\{USER_NAME}\AppData\Local\Programs\Python\Python37\Scripts>pip --version

pip 20.0.2 from c:\users\{USER_NAME}\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)

On the above output, you can see, I have pip 20.0.0 and python 3.7.

If you haven’t seen this, that means you do not have pip installed on your windows machine, let’s install PIP on windows.

How to install PIP on Windows:

  • Download the pip file get-pip.py and copy it anywhere in your system.
  • Navigate to the copied folder using command prompt.
  • And run the below command to install the pip
python get-pip.py

Now you can verify the installation by using the pip -V command.

Default Pip installation path: C:\Users\{your_user}\AppData\Local\Programs\Python\Python37\Scripts>
C:\Users\{your user}\AppData\Local\Programs\Python\Python37\Scripts>pip -V

You should see the below similar output:

pip 20.0.2 from c:\users\{your user}\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)

Now you have successfully installed pip on windows system, now on you can make use of it for managing your python packages.

References:

  • Python PIP download

Happy Learning 🙂

Share a word.

Related Posts

Page load link

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.


pip is a package management tool for Python that allows you to install and manage software packages from the Python Package Index (PyPI). The name pip originated as an acronym for Pip Installs Packages.

Most modern Python versions include pip by default. However, if it is missing, you can install it manually.

This guide will explain how to check if pip is installed, install it using two different methods, and upgrade or configure it on Windows.

draft - How to Install pip on Windows

Prerequisites

  • A Windows system.
  • Access to Command Prompt or PowerShell.
  • Python installed and added to PATH.

Note: Python is usually preinstalled on Windows. If not, the easiest method to get it is with Windows Package Manager. To install Python with winget, run: winget install Python.Python.

Check if pip Is Installed on Windows 

Python’s latest versions include pip, but some installations may not. Before installing pip on Windows, check if the system already has it.

Launch the command prompt and type the following command:

pip --version
pip not installed on windows

If pip is installed, the output displays the installed version. In case the system responds with an error message like the one above, follow one of the methods in this tutorial to install it.

Method 1: Install pip on Windows Using ensurepip

The ensurepip module is built into Python and can install pip if it’s missing. It’s useful in environments where pip was not included by default, such as embedded Python installations.

To install pip, run the following command:

python -m ensurepip --upgrade
python -m ensurepip --upgrade cmd output

After the installation completes, verify the pip installation with:

pip --version
pip --version cmd output

Method 2: Install pip on Windows Using get-pip.py

To install pip using this method, download the get-pip.py script using curl, then run it. Follow the steps below to install pip using this method.

Step 1: Download pip get-pip.py

Download the get-pip.py script with the following command:

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

Note: To check if the link in the command is up to date, visit the official site for get-pip.py. If you can access the file directly and it doesn’t print any errors, the link is still valid.

Step 2: Install pip on Windows

If you used the get-pip.py script to download pip, run the following Python command to install it:

python get-pip.py
python get-pip.py cmd output

Note: In some cases, get-pip.py outputs the installation location. If this happens, note the PATH to use when adding pip to your system’s PATH variable.

Step 3: Verify Installation

To test whether the installation was successful, type the following command:

pip --version
cmd output for pip --version

Step 4: Add pip to PATH

To run pip from any location and as a standalone command, add it to Windows environment variables.

Before modifying environment variables, check whether pip is already in your system’s PATH. Run this command:

where pip
where pip cmd output

If the command returns a valid PATH, skip this step. If the command cannot find the PATH, it returns the error:

where pip cmd output no path

Follow these steps to add pip manually:

1. Locate the pip installation directory, which is, by default, in the Scripts subdirectory of your Python installation. A typical path is:

C:\Users\[YourUsername]\AppData\Local\Programs\Python\PythonXX\Scripts

Replace [YourUsername] with your actual Windows username and PythonXX with the Python version.

In this tutorial, the path is:

C:\Users\PC\AppData\Local\Programs\Python\Python313\Scripts

Note it because you will need it in the coming steps.

2. Open the Start menu, search for Environment Variables, and press Enter.

Edit the environment variables

3. Click the Environment Variables button.

Click the Environment Variables button.

4. Double-click the Path variable to edit it.

Double-click the Path variable to edit it.

Note: Modify User variables for a single user or System variables to apply changes for all users.

5. Select New and add the directory where pip is installed, which you located and noted earlier,

pip installation directory

6. Click OK to save the changes.

7. Open a new command prompt session and run the following command to test the changes:

pip help
pip help cmd output

If the command does not work, try using pip3 instead of pip. Alternatively, add the directory where Python is installed to PATH and repeat the process.

Step 5: Configuration

The configuration file for pip exists in several locations on the system, including global, user-specific, and site-specific paths.

The configuration provides insight into how pip is set up and helps find installation problems or unexpected behavior.

To see the current configuration settings, run:

pip config -v list
pip config -v list cmd output

The command shows the possible global, user, and site locations for the pip.ini configuration file. If you need to adjust pip’s behavior, edit the appropriate pip.ini file based on these locations.

Upgrade or Downgrade pip on Windows 

New versions of pip are released occasionally. These updates improve functionality or are necessary for security purposes.

To upgrade pip on Windows, run:

pip install --upgrade pip

Downgrading is necessary if a new version of pip starts performing badly. To downgrade pip to a prior version, specify the version you want.

Use the following syntax:

python -m pip install pip==[version_number]

Conclusion

This guide explained two ways to install pip on Windows and elaborated on how to add pip to PATH when necessary. Additionally, it showed how to upgrade or downgrade pip.

Next, check out our guide and learn how to install NumPy, a powerful Python library for numerical computing, using pip.

Was this article helpful?

YesNo

Python · October 22, 2024


Python is a versatile programming language that has gained immense popularity due to its simplicity and powerful libraries. One of the essential tools for Python developers is pip, the package installer for Python. Understanding where pip is installed can help developers manage their Python packages more effectively. This article will explore the installation locations of pip and how to find it on different operating systems.

What is pip?

pip stands for “Pip Installs Packages” and is the standard package manager for Python. It allows users to install and manage additional libraries and dependencies that are not part of the Python standard library. With pip, developers can easily install packages from the Python Package Index (PyPI) and other repositories.

Where is pip Installed?

The installation location of pip can vary based on the operating system and the method used to install Python. Below, we will discuss how to find the installation path of pip on Windows, macOS, and Linux.

Finding pip on Windows

On Windows, pip is typically installed in the Scripts directory of the Python installation. To find the location, follow these steps:

  1. Open the Command Prompt.
  2. Type the following command and press Enter:
where pip

This command will return the path where pip is installed. It usually looks something like this:

C:UsersYourUsernameAppDataLocalProgramsPythonPython39Scriptspip.exe

Finding pip on macOS

On macOS, pip is generally installed in the /usr/local/bin directory. To locate it, you can use the Terminal:

  1. Open the Terminal application.
  2. Type the following command and press Enter:
which pip

This command will display the path to pip, which typically appears as:

/usr/local/bin/pip

Finding pip on Linux

On Linux systems, the installation path of pip can vary depending on the distribution and the method of installation. To find pip, you can use the Terminal:

  1. Open the Terminal.
  2. Type the following command and press Enter:
which pip

This command will return the path to pip, which is often located in:

/usr/bin/pip

Using pip to Manage Packages

Once you have located pip, you can use it to install, upgrade, or uninstall Python packages. Here are some common commands:

  • pip install package_name – Installs a package.
  • pip uninstall package_name – Uninstalls a package.
  • pip list – Lists all installed packages.
  • pip freeze – Outputs installed packages in a format suitable for requirements.txt.

Conclusion

Understanding where pip is installed in Python is crucial for effective package management. By following the steps outlined in this article, you can easily locate pip on your operating system and utilize it to manage your Python packages efficiently. For those looking to host their Python applications, consider exploring options like USA VPS Hosting for a reliable and scalable environment.

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.

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

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows server 2012 r2 планировщик заданий
  • Проверка памяти видеокарты amd на ошибки windows
  • Stop 0x00000074 windows 7 при установке
  • Универсальная программа для сканирования hp для windows 7
  • Как на клавиатуре обозначается windows