How to Install PIP on Windows ? - GeeksforGeeks (2024)

Last Updated : 18 Apr, 2024

Improve

PIP is a package management system used to install and manage software packages/libraries written in Python. PIP stands for Preferred Installer Program or Pip Installs Packages.

We can install Python packages using the Python pip install command in Command Prompt.

Pip Install a Python Package

These files are stored in a large “online repository” termed as Python Package Index (PyPI). pip uses PyPI as the default source for packages and their dependencies. So whenever you type:

pip install package_name

pip will look for that package on PyPI and if found, it will download and install the package on your local system.

Prerequisites

Python should be installed on your Windows machine.

How to Check if Python is Installed?

Run the following command to test if Python is installed or not.

python --version

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

Python 3.10.0

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

Installing Python pip on Windows

Installing pip in Windows is very easy. You just need to follow 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

We will cover each step further in article. Also, we will see about packages and how to install with pip in Python.

Python pip Install and Download

Python PIP can be downloaded and installed with following methods:

  • Using cURL in Python
  • Manually install Python PIP on Windows

Method 1: 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.

It downloads the get-pip.py file.

Follow these instructions to pip windows install:

Step 1: Open the cmd terminal

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

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

How to Install PIP on Windows ? - GeeksforGeeks (1)

Method 2: Manually 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.

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.

How to Install PIP on Windows ? - GeeksforGeeks (2)

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

How to Install PIP on Windows ? - GeeksforGeeks (3)

Step 3: 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: Now wait through the installation process. Voila! pip is now installed on your system.

How to Install PIP on Windows ? - GeeksforGeeks (4)

Verification of the Installation Process

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

How to Install PIP on Windows ? - GeeksforGeeks (5)

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:

  • Go to System and Security > System in the Control Panel once it has been opened.
  • 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:Python33Scripts, and select OK.

Upgrading Pip On Windows

pip can be upgraded using the following command.

python -m pip install -U pip

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

Also Read:

  • How to install PIP in Linux?
  • How to install pip in macOS

Like Article

Suggest improvement

Next

How to Install py-bottle on Windows?

Share your thoughts in the comments

Please Login to comment...

How to Install PIP on Windows ? - GeeksforGeeks (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

How to install pip for Python 3.9 on Windows? ›

If we don't have Python installed or if pip is missing, we can download and install it manually using the following steps:
  1. Step 1: Download get-pip.py. ...
  2. Step 2: Open a Command Prompt. ...
  3. Step 3: Navigate to the download location. ...
  4. Step 4: Install pip. ...
  5. Step 5: Verify the installation.

Why does pip install not work 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).

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.

How do I run a pip install command? ›

You can use pip from the command line by typing pip followed by a command, such as install to install a package or uninstall to remove a package. For example, to install the popular NumPy package, you can type pip install numpy in the command prompt.

Why is pip install not working? ›

If Python is not installed on your system or not added to the system's PATH variable, the operating system will not be able to locate the pip executable. To fix this issue, you need to install Python and add it to the system's PATH variable.

Can I install Python via pip? ›

pip is the preferred installer program. Starting with Python 3.4, it is included by default with the Python binary installers. A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide.

Can you run pip install in Python? ›

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.

Where is pip installed in Windows? ›

Locate the Python executable and find pip within its directory:
  1. Windows: Go to the directory where you installed Python. Usually, it's something like C:\Users\<username>\AppData\Local\Programs\Python\Python3.10\Scripts . Look for the file pip.exe .
  2. Unix/Linux: Run the following command to find the Python executable:
May 13, 2023

How do I install and update pip on Windows? ›

Upgrade PIP on Windows
  1. In order to upgrade PIP on Windows, just open the Window's Command Prompt and type the following command: python -m pip install --upgrade pip.
  2. For example, C:\Users\Shivang\AppData\Local\Programs\Python\Python39>python -m pip install ––upgrade pip.
Mar 4, 2024

Why can't i install pip on Python? ›

Corrupted pip installation: If your pip installation is corrupted, you can try reinstalling it. You can do this by running python -m ensurepip --upgrade . Incorrect permissions: If you do not have sufficient permissions to install packages, you may need to run the command prompt or terminal as an administrator.

How to locally install pip? ›

How?
  1. Install the downloaded package into a local directory : python get-pip.py --user This will install pip to your local directory (. local/bin) .
  2. Now you may navigate to this directory (cd . local/bin) and then use pip or better set your $PATH variable this directory to use pip anywhere : PATH=$PATH:~/.

How to check if pip is installed or not? ›

First, let's check whether you already have pip installed:
  1. Open a command prompt by typing cmd into the search bar in the Start menu, and then clicking on Command Prompt: ...
  2. Type the following command into the command prompt and press Enter to see if pip is already installed: pip --version.

How to install Python pip and virtualenv on Windows? ›

Getting Started
  1. Install Python. ...
  2. Add Python to PATH. ...
  3. Open a new CMD prompt (Windows Key + R, cmd.exe)
  4. Install virtualenv through the command pip install virtualenv. ...
  5. Check that virtualenv is installed through the command pip --version.
  6. Install virtualenvwrapper-win through the command pip install virtualenvwrapper-win.

What is pip install in Python? ›

The standard package manager for Python is pip . It allows you to install and manage packages that aren't part of the Python standard library. If you're looking for an introduction to pip , then you've come to the right place!

Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6722

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.