Little side note for anyone new to Python who didn't figure it out by theirself: this should be automatic when installing Python, but just in case, note that to run Python using the python command in Windows' CMD you must first add it to the PATH environment variable, as explained here.

If you have the Python launcher installed, in such case instead of typing python in the console you can type py. Whether or not one or both commands are available depends on the choices you made during installation.


To execute Pip, first of all make sure you have it installed, so type in your CMD:

> python
>>> import pip
>>>

The above should proceed with no error. Otherwise, if this fails, you can look here to see how to install it. Now that you are sure you've got Pip, you can run it from CMD with Python using the -m (module) parameter, like this:

> python -m pip <command> <args>

Where <command> is any Pip command you want to run, and <args> are its relative arguments, separated by spaces.

For example, to install a package:

> python -m pip install <package-name>
Answer from Marco Bonelli on Stack Overflow
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
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.
Discussions

python - how to install pip on windows - Stack Overflow
I've tried installing pip on windows using instructions from https://www.liquidweb.com/kb/install-pip-windows/, (which I've listed below), but when I run pip -V, I keep getting 'pip' is not recogni... More on stackoverflow.com
🌐 stackoverflow.com
python - How do I install pip on Windows? - Stack Overflow
Hmm I installed Python 3.4.4 and ... but in cmd pip is still not recognized. Can anyone help? 2016-01-20T09:30:49.457Z+00:00 ... In a command prompt, cd to the directory where pip3.exe resides and execute for example pip3 install -U sphinx. 2016-01-20T11:24:55.61Z+00:00 ... @IgorGanapolsky New versions of Python come with pip installed as a module, and not as an installed executable (at least at the path listed). With Windows 10 and Python ... More on stackoverflow.com
🌐 stackoverflow.com
How to Install PIP for Python on Windows 11?
What are the steps to install PIP for Python on Windows 11? The goal is to use Python with Microsoft Excel and, if possible, replace VBA entirely. More on learn.microsoft.com
🌐 learn.microsoft.com
1
0
How I install PIP onto Windows 7
First we need to get PIP https://bootstrap.pypa.io/get-pip.py Hit the mouse button and save as. Then open the command prompt like: Go to system and find the command prompt and navigate to the folder containing get- pip .py. Run the following command: python get- pip .py. More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
4
0
February 20, 2020
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install pip on windows
How to Install pip on Windows
March 24, 2025 - Install PIP on Windows using two different methods: ensurepip and get-pip.py. Learn how to upgrade and downgrade pip.
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-pip-on-windows
How to Install PIP on Windows - GeeksforGeeks
February 16, 2026 - To install PIP, you'll need the get-pip.py script. Let's understand this in the below-mentioned detailed steps: Curl is a UNIX command that is used to send the PUT, GET, and POST requests to a URL.
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
python3 -m pip install 'SomePackage[PDF]' python3 -m pip install 'SomePackage[PDF]==3.0' python3 -m pip install -e '.[PDF]' # editable project in current directory Windows
🌐
Dataquest
dataquest.io › blog › install-pip-windows
How to Install PIP on Windows (w/ Screenshots) – Dataquest
May 12, 2025 - Before proceeding to PIP installation on Windows, we need to make sure that Python is already installed and PIP is not installed. 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 ...
Find elsewhere
Top answer
1 of 16
1967

Python 3.4+ and 2.7.9+

Good news! Python 3.4 (released March 2014) and Python 2.7.9 (released December 2014) ship with Pip. This is the best feature of any Python release. It makes the community's wealth of libraries accessible to everyone. Newbies are no longer excluded from using community libraries by the prohibitive difficulty of setup. In shipping with a package manager, Python joins Ruby, Node.js, Haskell, Perl, Go—almost every other contemporary language with a majority open-source community. Thank you, Python.

If you do find that pip is not available, simply run ensurepip.

  • On Windows:

    py -3 -m ensurepip
    
  • Otherwise:

    python3 -m ensurepip
    

Of course, that doesn't mean Python packaging is problem solved. The experience remains frustrating. I discuss this in the Stack Overflow question Does Python have a package/module management system?.

Python 3 ≤ 3.3 and 2 ≤ 2.7.8

Flying in the face of its 'batteries included' motto, Python ships without a package manager. To make matters worse, Pip was—until recently—ironically difficult to install.

Official instructions

Per https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip:

Download get-pip.py, being careful to save it as a .py file rather than .txt. Then, run it from the command prompt:

python get-pip.py

You possibly need an administrator command prompt to do this. Follow Start a Command Prompt as an Administrator (Microsoft TechNet).

This installs the pip package, which (in Windows) contains ...\Scripts\pip.exe that path must be in PATH environment variable to use pip from the command line (see the second part of 'Alternative Instructions' for adding it to your PATH,

Alternative instructions

The official documentation tells users to install Pip and each of its dependencies from source. That's tedious for the experienced and prohibitively difficult for newbies.

For our sake, Christoph Gohlke prepares Windows installers (.msi) for popular Python packages. He builds installers for all Python versions, both 32 and 64 bit. You need to:

  1. Install setuptools
  2. Install pip

For me, this installed Pip at C:\Python27\Scripts\pip.exe. Find pip.exe on your computer, then add its folder (for example, C:\Python27\Scripts) to your path (Start / Edit environment variables). Now you should be able to run pip from the command line. Try installing a package:

pip install httpie

There you go (hopefully)! Solutions for common problems are given below:

Proxy problems

If you work in an office, you might be behind an HTTP proxy. If so, set the environment variables http_proxy and https_proxy. Most Python applications (and other free software) respect these. Example syntax:

http://proxy_url:port
http://username:password@proxy_url:port

If you're really unlucky, your proxy might be a Microsoft NTLM proxy. Free software can't cope. The only solution is to install a free software friendly proxy that forwards to the nasty proxy. http://cntlm.sourceforge.net/

Unable to find vcvarsall.bat

Python modules can be partly written in C or C++. Pip tries to compile from source. If you don't have a C/C++ compiler installed and configured, you'll see this cryptic error message.

Error: Unable to find vcvarsall.bat

You can fix that by installing a C++ compiler such as MinGW or Visual C++. Microsoft actually ships one specifically for use with Python. Or try Microsoft Visual C++ Compiler for Python 2.7.

Often though it's easier to check Christoph's site for your package.

2 of 16
310

-- Outdated -- use distribute, not setuptools as described here. --
-- Outdated #2 -- use setuptools as distribute is deprecated.

As you mentioned pip doesn't include an independent installer, but you can install it with its predecessor easy_install.

So:

  1. Download the last pip version from here: http://pypi.python.org/pypi/pip#downloads
  2. Uncompress it
  3. Download the last easy installer for Windows: (download the .exe at the bottom of http://pypi.python.org/pypi/setuptools ). Install it.
  4. copy the uncompressed pip folder content into C:\Python2x\ folder (don't copy the whole folder into it, just the content), because python command doesn't work outside C:\Python2x folder and then run: python setup.py install
  5. Add your python C:\Python2x\Scripts to the path

You are done.

Now you can use pip install package to easily install packages as in Linux :)

🌐
YouTube
youtube.com › the code city
How to Install PIP in Command Prompt (2024) - Beginner Guide - YouTube
In this video, I'll show you how you can Install PIP in Command Prompt for windows users. PIP is a package dependency manager, and after installing PIP you c...
Published   January 29, 2024
Views   27K
🌐
Liquid Web
liquidweb.com › home › how to install pip on windows
How to Install PIP on Windows in 5 Steps | Liquid Web
This tutorial will show how to install PIP, check its version, and configure it for use. ... Watch the video below or get started with step 1 now. ... Note: To open a Windows command prompt, press the “Windows Key+R” to open a “Run” dialog box. Next, type in “cmd”, and then click ...
Published   June 9, 2025
🌐
Alphr
alphr.com › home › how to install pip(python) on a windows pc
How to Install PIP(Python) on a Windows PC
April 6, 2023 - There’s no need to perform advanced programming to install PIP in Windows. You can use basic features to add this manager. For instance, cmd might be your best option.
🌐
Educative
educative.io › answers › how-to-install-pip-on-windows
How to install pip on Windows
If we don't have Python installed ... as an administrator. To do this, right-click the “Start” button and choose “Windows PowerShell (Admin),” or “Command Prompt (Admin).”...
🌐
PyPI
pypi.org › project › pip
pip · PyPI
3 weeks ago - Everyone interacting in the pip project’s codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PSF Code of Conduct. ... Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
      » pip install pip
    
Published   May 31, 2026
Version   26.1.2
🌐
Guru99
guru99.com › home › python › how to install pip on windows
How to install PIP on Windows
4 days ago - Step 5) Run the following command in the Windows command prompt. ... C:\Users\Guru99>python get-pip.py Collecting pip Using cached pip-22.3.1-py3-none-any.whl (2.1 MB) Installing collected packages: pip WARNING: The scripts pip.exe, pip3.10.exe, and pip3.exe are installed in 'C:\Users\Priya\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts' which is not on PATH.
🌐
Beebom
beebom.com › how-install-pip-windows
How to Install Pip on Windows in 2024 (Easy Guide) | Beebom
October 15, 2025 - Learn how to install Pip on Windows 10/ 11 using the command line or the installer. You can also fix Pip if its path is not set correctly.
🌐
AlexHost
alexhost.com › home › faq › windows › how to install pip on windows: a comprehensive guide
How to Install PIP on Windows: A Comprehensive Guide
October 3, 2024 - In Command Prompt, navigate to the script's directory using: ... Typically, the path is `C:Python39Scripts` or similar. ... Right-click the Start menu and select System. Click on Advanced system settings.
🌐
freeCodeCamp
forum.freecodecamp.org › t › how-i-install-pip-onto-windows-7 › 351803
How I install PIP onto Windows 7 - The freeCodeCamp Forum
February 20, 2020 - First we need to get PIP ... and navigate to the folder containing get- pip .py. Run the following command: python get- pip .py....
🌐
Sentry
sentry.io › sentry answers › windows › install python pip on windows
Install Python PIP on Windows | Sentry
June 15, 2023 - py -3 -m pip install sentry-sdk \\ or python -m pip install sentry-sdk · Resources What is Distributed Tracing (opens in a new tab) ... Tasty treats for web developers brought to you by Sentry.