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.

Answer from wkl on Stack Overflow

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.

Answer from wkl on Stack Overflow
🌐
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.
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.

Discussions

"python3 -m pip install" OR "pip install"
The recommended way avoids any confusion of if the pip version in your PATH matches the python version since you're using the python executable both to run your scripts and to kick off pip. More on reddit.com
🌐 r/learnpython
8
8
July 26, 2021
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
🌐
Python Packaging
packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
If you wish to install an extra for a package which you know publishes one, you can include it in the pip installation command: ... 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 ...
🌐
PyPI
pypi.org › project › pip
pip · PyPI
3 weeks ago - You can use pip to install packages from the Python Package Index and other indexes.
      » pip install pip
    
Published   May 31, 2026
Version   26.1.2
Find elsewhere
🌐
Reddit
reddit.com › r/learnpython › "python3 -m pip install" or "pip install"
r/learnpython on Reddit: "python3 -m pip install" OR "pip install"
July 26, 2021 -

So I was reading about virtual environments today at docs.python.org. According to the docs I should be using the following whenever installing a package in my virtual environment:

python3 -m pip install

However, I have been omitting the python3 -m part and everything so far has worked fine. Am I missing something?

🌐
pip
pip.pypa.io › en › stable › getting-started
Getting Started - pip documentation v26.1.2
Many Python projects use requirements.txt files, to specify the list of packages that need to be installed for the project to run. To install the packages listed in that file, you can run: ... $ python -m pip uninstall sampleproject Uninstalling sampleproject: [...] Proceed (Y/n)?
🌐
MTU Service Desk
servicedesk.mtu.edu › TDClient › 1801 › Portal › KB › PrintArticle
Installing, uninstalling, or upgrading Python modules using Pip (Linux)
Python modules are packages, or modules, which can be imported into a project to use. This includes packages like matplotlib, numpy, flask, and many more. You can install and uninstall packages for Python with the Pip package manager. Python modules that are stored on your home drive will only ...
🌐
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.
🌐
Python
docs.python.org › 3 › installing › index.html
Installing Python modules — Python 3.14.6 documentation
... On Linux, macOS, and other POSIX systems, use the versioned Python commands in combination with the -m switch to run the appropriate copy of pip: python3 -m pip install SomePackage # default Python 3 python3.14 -m pip install SomePackage ...
🌐
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
🌐
Ramotion
ramotion.com › blog › how-to-install-pip
How to Install Pip on Windows, Mac, and Linux | Ramotion Agency
February 24, 2026 - • Check first before installing ... seamless setup • Use distribution-specific commands on Linux - Ubuntu/Debian: sudo apt install python3-pip, Fedora: sudo dnf install python3-pip, Arch: sudo pacman -S python-pip • macOS ...
🌐
openSUSE Forums
forums.opensuse.org › english › applications
pip3 install command - Applications - openSUSE Forums
June 11, 2015 - With Ubuntu I use pip3 install “package name” Which command should I use for opensuse 12.3 x86_64. I already installed python3-pip but pip3 install is still not a typo I can use. Greetings Anton
🌐
GitHub
gist.github.com › boozook › d693415ac0ec0291181241ae733ebc75
Install PIP for Pythonista 3.x · GitHub
Install pip and set packages location in pip.conf with an absolute path for site-packages-3 (otherwise installs can be relative to install.py and run.py file locations)
🌐
Flask
flask.palletsprojects.com › en › stable › installation
Installation — Flask Documentation (3.1.x)
$ mkdir myproject $ cd myproject ... of the activated environment. Within the activated environment, use the following command to install Flask: $ pip install Flask ·...
🌐
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/
🌐
Kali Linux
kali.org › tools › python-pip
python-pip | Kali Linux Tools
2 weeks ago - It integrates with virtualenv, ... is the Python 3 version of the package. Installed size: 9.69 MB How to install: sudo apt install python3-pip...
🌐
NumPy
numpy.org › install
NumPy - Installing NumPy
python -m venv my-env source my-env/bin/activate # macOS/Linux my-env\Scripts\activate # Windows pip install numpy · Not recommended for most users, but available for convenience. macOS (Homebrew): brew install numpy · Linux (APT): sudo apt install python3-numpy ·