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.

Answer from Colonel Panic on Stack Overflow

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.

Answer from Colonel Panic on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › python › download-and-install-pip-latest-version
Download and install pip Latest Version - GeeksforGeeks
July 12, 2025 - Download the get-pip.py file and store it in the same directory as python is installed. Change the current path of the directory in the command line to the path of the directory where the above file exists.
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 :)

Discussions

python - how to install pip on windows - Stack Overflow
I've tried installing pip on windows ...stall-pip-windows/, (which I've listed below), but when I run pip -V, I keep getting 'pip' is not recognized as an internal or external command, operable program or batch file. Does anyone know what to do? ... Download get-pip.py to a folder ... More on stackoverflow.com
🌐 stackoverflow.com
How do I download pip?
You need to download the get-pip.py and then execute it with python (i.e. python get-pip.py. In case of errors, always attach them to your post, how are we supposed to help you with them otherwise? Any advice on how to install PIP into a windows system? More on reddit.com
🌐 r/learnpython
5
3
January 19, 2021
Beginner trying to install/import pip on Windows 11
Pip is always installed alongside Python these days. If you're getting a syntax error, that is almost always because you're trying to run it inside the Python console. pip is a command-line tool so you need to run it from the Windows cmd or powershell. Usually in Windows you would need to do py -m pip. More on reddit.com
🌐 r/learnpython
5
2
May 16, 2024
Install PIP Offline (Linux/Windows -> Mac OSX)
This thread has been linked to from another place on reddit. [ r/mac ] [X-Post osx]Install PIP Offline (Linux/Windows -> Mac OSX) If you follow any of the above links, respect the rules of reddit and don't vote. ( Info / ^ Contact ) More on reddit.com
🌐 r/osx
2
8
April 20, 2015
🌐
GitHub
github.com › pypa › get-pip
GitHub - pypa/get-pip: Helper scripts to install pip, in a Python installation that doesn't have it. · GitHub
Helper scripts to install pip, in a Python installation that doesn't have it. - pypa/get-pip
Starred by 888 users
Forked by 338 users
Languages   Python
🌐
PyPI
pypi.org › project › pip
pip · PyPI
3 weeks ago - Download the file for your platform. If you're not sure which to choose, learn more about installing packages. ... Filter files by name, interpreter, ABI, and platform. If you're not sure about the file name format, learn more about wheel file names. ... Details for the file pip-26.1.2.tar.gz. ... See more details on using hashes here. The following attestation bundles were made for pip-26.1.2.tar.gz: Publisher: release.yml on pypa/pip Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
      » pip install pip
    
Published   May 31, 2026
Version   26.1.2
🌐
PhoenixNAP
phoenixnap.com › home › kb › devops and development › how to install pip on windows
How to Install pip on Windows
March 24, 2025 - If you used the get-pip.py script to download pip, run the following Python command to install it: ... 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. To test whether the installation was successful, type the following command: ... To run pip from any location and as a standalone command, add it to Windows ...
🌐
Codegive
codegive.com › blog › get_pip_py_download_windows.php
Get pip py download windows
To get pip py download windows, ensure Python is installed and added to PATH. Pip is usually included with modern Python installations; otherwise, you can install it via the get-pip.py script downloaded and executed from the command line using python get-pip.py.
Find elsewhere
🌐
Dataquest
dataquest.io › blog › install-pip-windows
How to Install PIP on Windows (w/ Screenshots) – Dataquest
May 12, 2025 - This is exactly the case when we have to manually install PIP on Windows. Before installing PIP, we have to download the get-pip.py file.
🌐
GeeksforGeeks
geeksforgeeks.org › how-to-install-pip-on-windows
How to Install PIP on Windows - GeeksforGeeks
February 25, 2025 - 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. This is another method for downloading PIP manually.
🌐
Guru99
guru99.com › home › python › how to install pip on windows
How to install PIP on Windows
5 days ago - 🐍 Bundled Default: PIP ships automatically with Python 3.4 and every later release, so most users already have it on their machine. 📦 Two Install Paths: Use the manual get-pip.py download from pypa.org or fetch it instantly through cURL ...
🌐
Liquid Web
liquidweb.com › home › how to install pip on windows
How to Install PIP on Windows in 5 Steps | Liquid Web
The Python installation is incomplete or misconfigured. Once you have confirmed that Python is installed correctly, we can proceed with installing PIP. You can choose one of two methods to install PIP on Windows. Download PIP with get-pip.py to a folder on your computer.
Published   June 9, 2025
🌐
Reddit
reddit.com › r/learnpython › how do i download pip?
r/learnpython on Reddit: How do I download pip?
January 19, 2021 - You need to download the get-pip.py and then execute it with python (i.e. python get-pip.py. In case of errors, always attach them to your post, how are we supposed to help you with them otherwise? Any advice on how to install PIP into a windows system?
🌐
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.
🌐
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 - If PIP is not installed, download the `get-pip.py` script from the official PIP website. Save it to a convenient location like your Desktop. In Command Prompt, navigate to the script's directory using: ... Typically, the path is `C:Python39Scripts` ...
🌐
ActiveState
activestate.com › resources › quick-reads › how-to-install-pip-on-windows
Secure Python Packages Built From Source | ActiveState
ActiveState builds Python packages from source and delivers them as native Wheels through the package managers and artifact repositories your team already uses. ... Point pip at your Curated Catalog instead of PyPI.
🌐
PythonHow
pythonhow.com › how › install-pip-on-windows
Here is how to install pip on Windows in Python
New: Practice Python, JavaScript & SQL with AI feedback — Try ActiveSkill free → × ... To install pip on Windows, you can download the get-pip.py file from the official pip website. Once you have downloaded the get-pip.py file, open a command prompt window and navigate to the directory ...
🌐
Learnscript
learnscript.net › en › python › pip › install › install-pip-on-windows
How to Install the Python Package Manager pip on Windows - Python Tutorial | Learn
June 7, 2024 - All you need to do is choose a directory to download and save get-pip.py, then launch Windows’ Command Prompt and go to that directory, and finally execute get-pip.py using Python.
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
If pip isn’t already installed, then first try to bootstrap it from the standard library: ... Run python get-pip.py. [2] This will install or upgrade pip.
🌐
Voxfor
voxfor.com › blog › windows › how to install pip on windows for python: step-by-step guide
How to Install PIP on Windows for Python | Complete Guide
If PIP is not installed, download the installation script: Go to this URL: get-pip.py.
Published   October 21, 2024
🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
More details about this script can be found in pypa/get-pip’s README. ... The zip application is currently experimental. 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. This can be downloaded ...