The Wayback Machine - https://web.archive.org/web/20240817105607/https://www.geeksforgeeks.org/how-to-install-pip-on-windows/
Open In App

How to Install PIP on Windows ?

Last Updated : 07 Jul, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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.

If you wish to start you coding journey in python language don’t miss our well structured course Complete Machine Learning & Data Science Program in which we have covered all the topics of the language starting from the basics to advance such as Pandas, numPy and many more famous and useful libraries of the python.

Prerequisites

Python should be installed on your Windows machine.

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

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:

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

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.

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

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 -V
or
pip --version

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 on Windows – FAQs

How to install pip in windows using cmd?

Pip is usually included automatically when installing Python on Windows. To ensure it’s installed, download Python from python.org and select the ” Add Python to PATH ” option during installation. Then, open Command Prompt (cmd) and type python -m ensurepip –upgrade to install or upgrade pip.

How to install python in windows 11?

To install Python on Windows 11, visit python.org, download the installer for the latest version compatible with Windows 11, run the installer, and follow the prompts. Ensure to select the ” Add Python to PATH ” option during installation.

How to manually install pip on windows?

If pip isn’t installed with Python, you can download get-pip.py from https://bootstrap.pypa.io/get-pip.py . Open Command Prompt (cmd), navigate to the directory containing get-pip.py, and run python get-pip.py.

How to install pip on windows server?

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.

Where does pip install in windows ?

Pip installs Python packages in the Lib\site-package s directory of the Python installation. By default, this is usually in C:\Users\YourUsername\AppData\Local\Programs\Python\PythonXX\Lib\site-packages , where YourUsername is your Windows username and PythonXX is the Python version number.



Similar Reads

How to Upgrade Pip and Python on Windows, Linux, and MacOS?
Python is a programming language with standard libraries and a great ecosystem of third-party packages. On the other side, Pip is the default package manager for Python that installs, upgrades and manages Python, including its dependencies. Pip simplifies the process of installing external libraries and tools which are written in Python. Pip allows
5 min read
How to Upgrade PIP on Windows
In this tutorial, we will see how to Upgrade PIP on Windows. We will cover how to upgrade, check the version, and also how to downgrade PIP to the previous version. What does pip () do?PIP is a package management system used to install and manage software packages/libraries written in Python. These files are stored in a large “online reposit
3 min read
How to install Python3 and PIP on Godaddy Server?
GoDaddy VPS is a shared server that provides computational services, databases, storage space, automated weekly backups, 99% uptime, and much more. It’s a cheaper alternative to some other popular cloud-based services such as AWS, GPC, and Azure. Python is an open-source, cross-platform, high-level, general-purpose programming language created by G
2 min read
Download and install pip Latest Version
PIP is a package management system used to install and manage software packages/libraries written in Python. These files are stored in a large “on-line repository” termed as Python Package Index (PyPI). After you have successfully installed Python, you would clearly need pip in order to install packages, such as Numpy, Django and lots more on your
2 min read
How to install Python libraries without using the pip command?
The most common practice of installing external libraries in your system is by using the Python pip command. However, there is an alternate method of manually installing Python libraries without using the pip command. In this article, we are going to discuss how to manually install a python package. Below is the Step-by-step approach to manually in
1 min read
Install Packages Using PIP With requirements.txt File in Python
Installing more than one package in Python simultaneously is a common requirement for any user migrating between operating systems. Most users are unaware of the availability of batch installing all the packages. They default to manually installing each library one after the other, which is time-consuming. This article will teach you how to install
2 min read
Install Httpx using Python PIP
When working on the internet or building websites, it's important to have good tools to ask for information. HTTPX is one of these tools, and a lot of people like it because it's fast, flexible, and has many features. This article will explain what HTTPX is and show you simple steps to put it on your computer. What is HTTPX?HTTPX is a fully feature
3 min read
How to Install Yotta through PIP
Yotta is a powerful tool designed to simplify the management of software projects written in the C and C++ programming languages. It provides a streamlined approach to building automation, dependency management, and package distribution. Whether you're developing embedded systems, IoT devices, or applications that require efficient code management,
3 min read
How to Install yfinance with Python PIP
The yfinance API is a powerful tool for accessing financial data from Yahoo Finance. It allows users to download historical market data, retrieve financial information, and perform various financial analyses. This API is widely used in finance, investment, and trading applications for its ease of use and comprehensive data coverage. In this article
2 min read
How to fix "Pip Install Timeout Issue"?
Python's package installer, pip, is an essential tool for managing and installing Python libraries. However, users sometimes encounter a frustrating problem: the "Pip Install Timeout Issue." This issue occurs when pip takes too long to download packages, leading to a timeout error. This article will explain what causes this issue and provide code e
4 min read
How to install pip in macOS ?
Before we start with how to install pip for Python on macOS, let's first go through the basic introduction to Python.  Python is a widely-used general-purpose, high-level programming language. Python is a programming language that lets you work quickly and integrate systems more efficiently. PIP is a package management system used to install and ma
4 min read
How to Install the Windows Subsystem for Linux on Windows 11?
As a programmer, it is very important to test software on multiple platforms. However, it can be very tedious and inefficient to use multiple virtual machines to achieve the same. Thankfully, this process can be simplified if you are using Windows and wish to run a Linux distribution - with WSL. WSL, or Windows Subsystem for Linux, lets developers
2 min read
How to Download and Install Windows Movie Maker on Windows 10?
Movie Maker video is one of the best video editors available on the Microsoft store itself and is absolutely free. Movie maker video editor is a single-OS software, i.e. it works only in windows, and not on macOS, and Linux. Movie maker has more than 10 million users worldwide. Some of the very cool features of movie maker video editors are that th
2 min read
Linux - Installing PIP to Manage Python Packages
Python is the most popular language for a decade, and we all know that python had a huge support of libraries that are used in different sectors of Software Engineering. Meanwhile, PIP also getting its fame along with python in Linux and developers community.PIP is a package manager for python in handling the software packages that are developed us
2 min read
11 pip Commands For Python Developers
Python has been preferred over all programming languages for technological advancement. It is one of the most lucrative programming languages that is used as the main programming language by more than 80%of developers. It is used for web development, mobile applications, hardware programming, and many more. Pip commands cannot be ignored when we ta
5 min read
How to Set up Chrome Picture-in-Picture (PiP) mode in Linux
PiP(Picture-in-Picture) allows us to watch online streams and videos in a floating window outside of the Google Chrome browser or even on top of any other application window. Chrome Picture-In-Picture (PiP) has improved the overall video streaming experience throughout the world. We can watch videos along with working and interacting with different
3 min read
How to Force pip to Reinstall a Package?
It is common for library files to get corrupted with time for a programming language. In such cases, it may break the code in inexplicable ways. To resolve such issues, the library files need to be reinstalled a new to fix the problems. Here, we will learn how to force pip to reinstall the current version. There could be two situations in which the
2 min read
Python PIP
In this article, we will discuss what is PIP, and how to install, upgrade, and uninstall packages using Python PIP. So before starting and using it, let us understand what is a Python PIP. What is Package in Python?Package refers to a distribution of Python code that includes one or more modules or libraries. These packages are typically published
5 min read
Update Flask using PIP
Flask, a popular web framework for Python, evolves with new features, bug fixes, and improvements. Keeping your Flask installation up-to-date ensures that you can leverage the latest enhancements and security patches. In this guide, we'll walk through the process of updating Flask using pip, the package installer for Python. Update Flask Using Pip
2 min read
Difference Between pip and easy_install in Python
Python's popularity is partly due to its many pre-written code packages that simplify development. Two major tools for managing these packages are pip and easy_install. In this article, we'll look at how they're alike and different, so you can choose the best one for our projects. Python PipPip, the short form of "Pip Installs Packages," is like th
3 min read
What is the Difference Between pip and Conda?
Managing packages is a crucial aspect of every project. Python offers several tools for package management, with two of the most popular being pip and conda. While both tools serve the same purpose of installing and managing packages, they have different approaches and functionalities. Understanding the differences between pip and conda can help de
3 min read
"How to Fix 'jupyter: command not found' Error After Installing with pip "
Encountering the "Jupyter command not found" error after installing Jupyter with pip can be frustrating. This common issue typically arises due to problems with the installation path or virtual environments. In this guide, we'll explore the root causes and provide step-by-step solutions to fix this error. Ensuring Jupyter Notebook is correctly inst
4 min read
Does Uninstalling a Python Package with "PIP" also Remove the Dependent Packages?
Pip, which stands for "Pip Installs Packages," is the package management system used to install and manage software packages written in Python. These packages are stored in the Python Package Index (PyPI). When you use pip to install a package, it also installs any dependencies required by that package. However, the behavior of pip when it comes to
4 min read
How to fix "error 403 while installing package with Python PIP"?
When working with Python, pip is the go-to tool for managing packages. However, encountering a "403 Forbidden" error can be frustrating. This error typically indicates that the server refuses to fulfill the request, often due to permissions or access restrictions. In this article, we'll delve into the causes of this error and explore various soluti
4 min read
How to disable superfetch in windows 10 or windows 11?
Windows Vista introduced the Superfetch (SysMain) capability, which is still a part of the Windows operating system. It is a built-in service designed to speed up startup times and enhance performance by preloading frequently used apps in RAM. It was, however, primarily developed for older PCs. For contemporary PCs running Windows 10 and Windows 11
4 min read
How to Upgrade From Windows 10 to Windows 11 For Free?
Windows 11 is a very popular operating system by Microsoft. Windows 11 is free for Windows 10 PC that meet some minimum hardware requirements. There is no need to spend money on a brand-new computer when you can upgrade to Windows 11 for free. Besides this, Microsoft officially announced that existing PCs (original versions) will be offered to upgr
5 min read
How to Install Kali Linux on Windows?
Kali Linux is an open-source Linux distribution based on Debian, designed for sophisticated penetration testing and security auditing. Kali Linux includes hundreds of tools for diverse information security activities such as penetration testing, security research, computer forensics, and reverse engineering. This multi-platform solution is accessib
2 min read
How to Install Ubuntu on Windows using VMware?
VMWare, a short form of "VirtualMachine Ware". A cloud computing company that develops virtualization software, management, and networking interfaces or tools. It provides hypervisor tools or products that help in running virtual machines, clusters, and containers. By using this software we can virtualize the computer with required computing resour
2 min read
How to Install Only Office Desktop Editors on Windows?
The only office is free and open-source software. It is created by Ascensio System SIA. Its headquarter is in Riga, Latvia. Only office has many features like an online document editor, corporate communication, mail and project management tool, etc. Its license is AGPL-3.0-only. It is used on operating systems like, Windows; macOS; Linux; Android;
3 min read
How to Install Mutagen for Python on Windows?
There are many important python modules or packages from which Mutagen is used for handling the audio metadata also known as music metadata, it is an independent python standard library and is available open source and free for windows, macOS, and Linux operating systems, etc. Here we will learn how to install the Mutagen module on the windows oper
2 min read
three90RightbarBannerImg