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
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). ... Windows, Linux and macOS. CPython 3.10, 3.11, 3.12, 3.13, 3.14 and latest PyPy3.
🌐
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.
Discussions

python - How to run Pip commands from CMD - Stack Overflow
As I understand, Python 2.7.9 comes ... from CMD (Windows) I get the following error: 'pip' is not recognized as an internal or external command, operable program or batch file. When I type python I do get the following, which suggests it has been installed correctly: Python 2.7.9 (default, Dec 10 2014, 12:24:55) ... 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
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
I'm trying to figure out how to use pip on windows but I cant get it working.
I've installed Python 2.6.5 Really? Why would you install such an old version of python? Where did you get it from? You need to set the environmental variable "PATH" manually for old versions. You need to set 2 paths: one for python and one for pip. On a default install the paths are probably C:\Python26 and C:\Python26\Scripts py did not come with old versions of python ... that must be from a newer install. More on reddit.com
🌐 r/learnpython
6
13
April 16, 2018
🌐
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.
🌐
Dataquest
dataquest.io › blog › install-pip-windows
How to Install PIP on Windows (w/ Screenshots) – Dataquest
May 12, 2025 - To verify that Python is available ... 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...
🌐
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
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 :)

Find elsewhere
🌐
DEV Community
dev.to › el_joft › installing-pip-on-windows
how to install pip: Installing pip on Windows - DEV Community
October 11, 2022 - Before you install pip on your computer, make sure python has been installed on your computer. You can verify this by opening a command prompt terminal (CMD) on windows using search in Windows 7. Then click the Command Prompt search result. For Windows 8.1, switch to the Start screen and type command or cmd. In Windows 10...
🌐
Guru99
guru99.com › home › python › how to install pip on windows
How to install PIP on Windows
6 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.
🌐
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 “OK”. This open a normal Command Prompt.
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 - This article will show you how to install PIP in both Windows 10 and Windows 11 · PIP is an integral part of Python and is so necessary that the developers have included it with the core program since versions 3.4 and 2.7.9 (for Python 3 and 2, respectively). This means that the manager may already be installed on your computer. You’ll need to use the Command Prompt to verify this. Here’s how to do so. Click the “Start Menu” icon and type “cmd.”
🌐
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.
🌐
Educative
educative.io › answers › how-to-install-pip-on-windows
How to install pip on Windows
Scroll down to the “Files” section, and under “Windows installer (64-bit)” or “Windows installer (32-bit),” click the link to download the installer. Once the installer is downloaded, locate the file (e.g., python-3.9.x-amd64.exe for the 64-bit version), and double-click it to run the installer. Check the box “Add Python x.x to PATH” during the installation. This option will add Python to our system’s environment variables, allowing us to use Python and pip from the Command Prompt easily.
🌐
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. In the System Properties window, click ...
🌐
AvenaCloud
avenacloud.com › home › how to install pip on windows 10, 11
How To Install Pip On Windows — 10, 11 Step-by-Step Guide
October 28, 2025 - Quick, clear steps to learn how to install pip on Windows, add it to PATH, troubleshoot errors, and start installing Python packages confidently.
Address   Muncesti 364, 2002, Chisinau
🌐
GitHub
gist.github.com › mkrause-nps › bcb7c75c9ea121e92f6c7982bdc170fc
Installing `pip` on Windows 10 · GitHub
If not, download the pip installation script. In Command Prompt or PowerShell run: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py It'll create a file get-pip.py in same directory. ... Verify (see above) - and done.
🌐
The Knowledge Academy
theknowledgeacademy.com › blog › how-to-install-pip
How to Install PIP on Windows: Everything You Need to Know
January 1, 2009 - Now that the Command Prompt is open, use the following command to request and download the get-pip.py installation script from the official Python Package Authority (PyPA) server: This command tells Windows to connect to the server, fetch the get-pip.py file, and save it locally in your current working directory.
🌐
Stack Abuse
stackabuse.com › how-to-install-pip-on-windows
How to Install Pip on Windows
October 10, 2023 - This article shows you how to install Pip, the preferred package manager in Python for tools and projects, on Windows, as well as how to uninstall pip.
🌐
OperaVPS
operavps.com › docs › how to install pip in windows: a step by step guide for business owners
How to Install PIP in Windows to Manage Python Packages
May 16, 2026 - You should also be able to access the Command Prompt window with system administrator privileges. After considering the minimum prerequisites for installing PIP on Windows, you will increase your development productivity and efficiency by following the steps to install PIP on Windows.