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)
🌐
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.
      » pip install pip
    
Published   May 31, 2026
Version   26.1.2
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
py -m pip install "SomePackage[PDF]" py -m pip install "SomePackage[PDF]==3.0" py -m pip install -e ".[PDF]" # editable project in current directory ... “Secure” in this context means using a modern browser or a tool like curl that verifies SSL certificates when downloading from https URLs.
Discussions

python - How do I install pip on Windows? - Stack Overflow
As you mentioned pip doesn't include an independent installer, but you can install it with its predecessor easy_install. ... Download the last easy installer for Windows: (download the .exe at the bottom of http://pypi.python.org/pypi/setuptools ). 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
24
7
April 5, 2024
How to install pip with Python 3? - Stack Overflow
Pip's website says that it already comes with Python 3.4+ if you downloaded from python.org. However, when I type pip on terminal, I get command not found. So I decided to go through the python3's install docs again, where it mentions that python and pip should be accessed using the commands ... More on stackoverflow.com
🌐 stackoverflow.com
How to use Python's pip to download and keep the zipped files for a package? - Stack Overflow
If I want to use the pip command to download a package (and its dependencies), but keep all of the zipped files that get downloaded (say, django-socialregistration.tar.gz) - is there a way to do th... More on stackoverflow.com
🌐 stackoverflow.com
🌐
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.
🌐
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.
🌐
Python
python.org › downloads
Download Python | Python.org
Note that some executables may ... default pip command. These are not built as part of Python, but are included from third-party libraries. Files that are intended to be modified before use cannot be signed and so will not have a signature. Installer packages for Python on macOS downloadable from python.org ...
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
🌐
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

🌐
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
🌐
Red Hat
redhat.com › en › blog › install-python-pip-linux
Install Python pip on Linux
November 21, 2025 - [ Get the pip cheat sheet to help you install, manage, and use Python software packages. ] ... Now that you've installed pip, you might want to know more about what it's good for. Here are some basic uses of the pip command. [ Get the guide to installing applications on Linux. ] When you download a ...
🌐
pip
pip.pypa.io › en › stable › cli › pip_download
pip download - pip documentation v26.1.2
Download a package and its dependencies with linux specific constraints. Force the interpreter to be any minor version of py3k, and only accept cp34m or none as the abi. ... python -m pip download \ --only-binary=:all: \ --platform linux_x86_64 \ --python-version 3 \ --implementation cp \ --abi ...
🌐
Ramotion
ramotion.com › blog › how-to-install-pip
How to Install Pip on Windows, Mac, and Linux | Ramotion Agency
February 24, 2026 - The easiest way to install pip on Windows is to install Python directly from the official website. Modern Python installations include pip by default. Simply visit python.org, click Downloads, and select the latest Python version for Windows.
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.

🌐
pip
pip.pypa.io › en › stable › getting-started
Getting Started - pip documentation v26.1.2
If you got output that does not look like the sample above, please read the Installation page. It provides guidance on how to install pip within a Python environment that doesn’t have it.
🌐
Reddit
reddit.com › r/learnpython › how do i download pip?
How do I download pip? : r/learnpython
March 3, 2019 - To use pip on my win10 machine i had to use Windows powershell and then navigate to through folders until i got to the scripts folder within Python, then i could pip all the packages i wanted.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-pip
Python PIP - GeeksforGeeks
3 weeks ago - Python PIP is the package manager used to install, update and manage Python packages and libraries. It allows users to easily download packages from the Python Package Index (PyPI) directly through the command line.
🌐
DuckDB
duckdb.org › install
DuckDB Installation – DuckDB
Python · Go · Java · Node.js · C / C++ R · Rust · ODBC More · Linux · macOS · Windows · Alternative download methods Client documentation page · This page contains links to the current stable and the LTS versions. For the preview version, please visit the preview (nightly) page.
🌐
Streamlit
docs.streamlit.io › get-started › installation
Install Streamlit - Streamlit Docs
To set up your Python environment and test your installation, execute the following terminal commands: ... Jump to our Basic concepts. Install Streamlit on your own machine using tools like venv and pip.