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.0.1
Python comes with an ensurepip module[1], which can install pip in a Python environment. ... More details about how ensurepip works and how it can be used, is available in the standard library documentation. This is a Python script that uses some bootstrapping logic to install pip.
Discussions

python - How do I install pip on Windows? - Stack Overflow
Python 2.x is legacy, Python 3.x is the present and future of the language, according to Python2orPython3 2015-12-09T09:18:38.2Z+00:00 ... Hmm I installed Python 3.4.4 and I could find pip3.exe following the path in this answer, but in cmd pip is still not recognized. More on stackoverflow.com
🌐 stackoverflow.com
How to...pip install?
I'm going to make the assumption that you don't use a virtual environment for this project. Try entering this into the VS Code terminal: py -m pip install requests This should always work on Windows as long as you have Python installed. Just make sure to not enter it into the Python REPL (starting with >>>) as this is not Python code. More on reddit.com
🌐 r/learnpython
21
7
April 5, 2024
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
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
4
2
May 16, 2024
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages — Python Packaging User Guide
It’s recommended to write ... Python installation that the python command refers to). ... Due to the way most Linux distributions are handling the Python 3 migration, Linux users using the system Python without creating a virtual environment first should replace the python command in this tutorial with python3 and the python -m pip command with ...
🌐
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
Top answer
1 of 16
1966

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 :)

🌐
Reddit
reddit.com › r/learnpython › how to...pip install?
r/learnpython on Reddit: How to...pip install?
April 5, 2024 -

Never thought I'd need to ask this question as a CCNA and Network+ holder, I guess Python has decided to make the simple act of a pip install THIS difficult, wow! I have Python installed as well as Virtual Studio Code. I try this from command prompt

pip3 install requests
File "<stdin>", line 1
pip3 install requests
^^^^^^^

And that's all I get, again and again and again. So I try this in the Visual Studio terminal:

pip3 : The term 'pip3' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the 

spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • pip3 install requests

  •   + CategoryInfo          : ObjectNotFound: (pip3:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
      
    

Mind blowing stuff here. I JUST want to be able to pip install. I've also tried just using "pip" and leaving out the 3. What mountains must I move to perform such a basic task? I

🌐
GeeksforGeeks
geeksforgeeks.org › how-to-install-pip-on-windows
How to Install PIP on Windows - GeeksforGeeks
February 25, 2025 - 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.
Find elsewhere
🌐
W3Schools
w3schools.com › python › python_pip.asp
Python PIP
Open the command line interface and tell PIP to download the package you want. Navigate your command line to the location of Python's script directory, and type the following: ... Now you have downloaded and installed your first package!
🌐
PyPI
pypi.org › project › pip
pip · PyPI
You can use pip to install packages from the Python Package Index and other indexes.
      » pip install pip
    
Published   Feb 05, 2026
Version   26.0.1
🌐
pip
pip.pypa.io › en › stable › cli › pip_install
pip install - pip documentation v26.0.1
PyPI (and other indexes) using requirement specifiers. VCS project urls. Local project directories. Local or remote source archives. pip also supports installing from “requirements files”, which provide an easy way to specify a whole environment to be installed.
🌐
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.
🌐
Server Academy
serveracademy.com › courses › python-3-for-beginners › installing-python-pip
Learn how to install PIP for Python 3 on Windows - Server Academy
If PIP is not installed, you need to download the PIP installation script get-pip.py. This script simplifies the installation process and ensures that you have the necessary tools to manage Python packages seamlessly. Type the following command to download:
🌐
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...
🌐
Educative
educative.io › answers › how-to-install-pip-on-windows
How to install pip on Windows
It’s like having a big library of pre-made parts that we can use to build our projects faster. Whether we're new to Python or already experienced, pip is a handy friend that saves our time and makes programming more fun. To install pip on Windows, we can use the Python installer or download and install it manually.
🌐
Command Linux
commandlinux.com › home › how to › how to install pip linux?
How to Install pip Linux?
2 days ago - You’ll see an “externally-managed-environment” error if you try to install globally. The safest fix is adding --user to your pip command. This puts the package in your home directory rather than system paths:
🌐
Python
docs.python.org › 3 › installing › index.html
Installing Python Modules — Python 3.14.3 documentation
When using comparator operators such as >, < or some other special character which get interpreted by shell, the package name and the version should be enclosed within double quotes: python -m pip install SomePackage==1.0.4 # specific version ...
🌐
ActiveState
activestate.com › home › resources › quick read › how to install pip on windows
How to Install Pip on Windows - ActiveState
January 24, 2024 - If you’re using an older version of Python, pip needs to be installed. This tutorial steps through how to install Pip on Windows, and keeping it updated.
🌐
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 - It might not be installed if the cmd tells you your PIP is unrecognized as an external or internal command, batch file, or operable program. The culprit may also be an improper variable path but assume you haven’t installed the manager yet. Once you verify your Windows 11 PC doesn’t have PIP, launch your browser and go to the Python for Windows website.