🌐
pip
pip.pypa.io › en › stable › installation
Installation - pip documentation v26.1.2
Python comes with an ensurepip module[1], which can install pip in a Python environment.
🌐
PyPI
pypi.org › project › pip
pip · PyPI
3 weeks ago - The PyPA recommended tool for installing Python packages. ... pip is the package installer for Python.
      » pip install pip
    
Published   May 31, 2026
Version   26.1.2
Discussions

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
24
7
April 5, 2024
How to install pip with Python 3? - Stack Overflow
I want to install pip. It should support Python 3, but it requires setuptools, which is available only for Python 2. How can I install pip with Python 3? More on stackoverflow.com
🌐 stackoverflow.com
python - How do I install pip on Windows? - Stack Overflow
pip is a replacement for easy_install. But should I install pip using easy_install on Windows? Is there a better way? More on stackoverflow.com
🌐 stackoverflow.com
python - How do I install pip on macOS or OS X? - Stack Overflow
I spent most of the day yesterday searching for a clear answer for installing pip (package manager for Python). I can't find a good solution. How do I install it? More on stackoverflow.com
🌐 stackoverflow.com
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
The most common usage of pip is to install from the Python Package Index using a requirement specifier. Generally speaking, a requirement specifier is composed of a project name followed by an optional version specifier. A full description of the supported specifiers can be found in the Version ...
🌐
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

🌐
pip
pip.pypa.io › en › stable › getting-started
Getting Started - pip documentation v26.1.2
To get started with using pip, you should install Python on your system.
Top answer
1 of 16
892

edit: Manual installation and use of setuptools is not the standard process anymore.

If you're running Python 2.7.9+ or Python 3.4+

Congrats, you should already have pip installed. If you do not, read onward.

If you're running a Unix-like System

You can usually install the package for pip through your package manager if your version of Python is older than 2.7.9 or 3.4, or if your system did not include it for whatever reason.

Instructions for some of the more common distros follow.

Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 2.x

Run the following command from a terminal:

sudo apt-get install python-pip 

Installing on Debian (Wheezy and newer) and Ubuntu (Trusty Tahr and newer) for Python 3.x

Run the following command from a terminal:

sudo apt-get install python3-pip
Note:

On a fresh Debian/Ubuntu install, the package may not be found until you do:

sudo apt-get update

Installing pip on CentOS 7 for Python 2.x

On CentOS 7, you have to install setup tools first, and then use that to install pip, as there is no direct package for it.

sudo yum install python-setuptools
sudo easy_install pip

Installing pip on CentOS 7 for Python 3.x

Assuming you installed Python 3.4 from EPEL, you can install Python 3's setup tools and use it to install pip.

# First command requires you to have enabled EPEL for CentOS7
sudo yum install python34-setuptools
sudo easy_install pip

If your Unix/Linux distro doesn't have it in package repos

Install using the manual way detailed below.

The manual way

If you want to do it the manual way, the now-recommended method is to install using the get-pip.py script from pip's installation instructions.

Install pip

To install pip, securely download get-pip.py

Then run the following (which may require administrator access):

python get-pip.py 

If setuptools is not already installed, get-pip.py will install setuptools for you.

2 of 16
237

I was able to install pip for python 3 on Ubuntu just by running sudo apt-get install python3-pip.

package management system for Python
Pip_help.png
PyPI
PyPI - Python Version
Documentation
pip install virtualenv
pip (also known by Python 3's alias pip3) is a package manager (package management system) written in Python and is used to install and manage software packages. The Python Software Foundation recommends … Wikipedia
Factsheet
pip
Original author Ian Bicking
Release 28 October 2008 (17 years ago) (2008-10-28)
Factsheet
pip
Original author Ian Bicking
Release 28 October 2008 (17 years ago) (2008-10-28)
Find elsewhere
🌐
Pip
pip.pypa.io
pip documentation v26.1.2
You can use it to install packages from the Python Package Index and other indexes. If you want to learn about how to use pip, check out the following resources:
🌐
Red Hat
redhat.com › en › blog › install-python-pip-linux
Install Python pip on Linux
November 21, 2025 - If that file exists, you can process it with pip: ... If the developer hasn't included a list of dependencies, it's up to you to read the documentation to learn what dependencies are required. If you install software with dnf or Flatpak, you may never have to use pip for this because those packaging systems automatically install dependencies.
🌐
Ramotion
ramotion.com › blog › how-to-install-pip
How to Install Pip on Windows, Mac, and Linux | Ramotion Agency
February 24, 2026 - Learn how to install, fix, and verify pip on Windows, macOS, and Linux. A complete beginner-friendly guide to Python’s package manager, common issues, and best practices.
🌐
pip
pip.pypa.io › en › latest › cli › pip_install
pip install - pip documentation v26.2.dev0
Installing collected packages baz, bar, foo, quux $ python -m pip install bar ... Installing collected packages foo, baz, bar Windows · C:\> py -m pip install quux ... Installing collected packages baz, bar, foo, quux C:\> py -m pip install bar ...
🌐
Python Packaging
packaging.python.org › en › latest › guides › section-install
Installation - Python Packaging User Guide
Install packages in a virtual environment using pip and venv · Installing packages using virtualenv · Installing stand alone command line tools · Installing pip/setuptools/wheel with Linux Package Managers · Installing scientific packages · Building and Publishing ·
🌐
GitHub
github.com › pypa › pip
GitHub - pypa/pip: The Python package installer · GitHub
You can use pip to install packages from the Python Package Index and other indexes.
Starred by 10.2K users
Forked by 3.3K users
Languages   Python
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 › watch
How to Install PIP in Python - YouTube
Install pip for python. Pip is used for installing packages in python such as pandas or pygame. Pip is usually installed when you install python but if you d...
Published   February 10, 2026
🌐
B-List
b-list.org › weblog › 2023 › dec › 07 › pip-install-safely
Use "pip install" safely
December 7, 2023 - The end result of that process, if you follow it, will be a set of “requirements files” which can be given to pip to install from, and which will contain your entire dependency tree, fully resolved including all transitive dependencies-of-dependencies-of-dependencies (etc.), pinned to exact versions, and listing the expected hashes of the packages.
🌐
W3Schools
w3schools.com › python › python_pip.asp
Python PIP
If you do not have PIP installed, you can download and install it from this page: https://pypi.org/project/pip/
🌐
YouTube
youtube.com › watch
How to Install PIP in Python - Windows 10/11 (2024) - YouTube
In this video, I’ll guide you through the steps to install PIP for Python 3.12 on Windows 10 or 11. If you’re encountering the error: `'pip' is not recognize...
Published   December 16, 2024
Top answer
1 of 16
3498

On Linux or MacOS:

Copypython -m ensurepip --upgrade

If you want to install pip for Python 3, replace python with python3.

See https://pip.pypa.io/en/stable/installation/ for more details.

2 of 16
795

⚡️ TL;DR — One-line solution.

Run the following command for Python v2.7 (default on Mac as of 2021)

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

Run the following command for Python v3

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

Or the following if you have it installed as Python 3

curl https://bootstrap.pypa.io/get-pip.py | python3

Another GIF image you said? Here you go!


The following used to work in 2019 and before

All you had to do was:

sudo easy_install pip

2019: ⚠️easy_install has been deprecated. Check Method #2 below for the preferred installation!

Details:

⚡️ OK, I read the solutions given above, but here's an easy solution to install pip.

The macOS comes with the Python environment installed. But to make sure that you have Python installed open the terminal and run the following command.

python --version

If this command returns a version number that means Python exists. This also means that you already have access to easy_install considering you are using macOS or OS X.

ℹ️ Now, all you have to do is run the following command.

sudo easy_install pip

After that, pip will be installed and you'll be able to use it for installing other packages.

P.S. I ended up blogging a post about it. QuickTip: How Do I Install pip on macOS or OS X?


✅ Method #2: Two line solution

easy_install has been deprecated. Please use get-pip.py instead.

Download and install PIP

curl https://bootstrap.pypa.io/get-pip.py | python
🌐
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.