The pip command is the default package installer for Python, used to install, update, and manage software packages from the Python Package Index (PyPI). Most Python distributions (Python 3.4+ and 2.7.9+) include pip by default, though on Linux systems with Python 3, the command is often explicitly named pip3.

To execute commands, users can typically run pip <command> (e.g., pip install flask) or, more reliably across all environments, python -m pip <command> (e.g., python -m pip install flask).

Common pip Commands and Options

  • Install Packages: Use pip install <package-name> to install the latest version, or pip install <package-name>==<version> for a specific version.

  • Upgrade Packages: The -U or --upgrade flag updates existing packages (pip install -U <package-name>).

  • List Installed Packages: pip list displays installed packages in a table, while pip freeze outputs them in a format suitable for requirements.txt files.

  • Uninstall Packages: Use pip uninstall <package-name> to remove a package, adding the -y flag to skip confirmation prompts.

  • Search and Check: pip search <term> finds packages by name, and pip check verifies that installed dependencies are compatible.

  • Requirements Management: pip install -r requirements.txt installs all packages listed in a file, while pip freeze > requirements.txt generates such a file from the current environment.

Platform-Specific Usage

On Windows, if pip is not recognized, users may need to use py -m pip or add the Python Scripts directory to their system PATH. On Linux and macOS, pip3 is often the preferred command for Python 3 environments, while python3 -m pip ensures the correct Python version is targeted regardless of the system alias.

๐ŸŒ
Python Packaging
packaging.python.org โ€บ tutorials โ€บ installing-packages
Installing Packages โ€” Python Packaging User Guide
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 python3 -m pip --user.
๐ŸŒ
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/ Downloading a package is very easy. Open the command line interface and tell PIP to download the package you want.
Discussions

python - How to run Pip commands from CMD - Stack Overflow
As I understand, Python 2.7.9 comes with Pip installed, however when I try to execute a Pip command from CMD (Windows) I get the following error: 'pip' is not recognized as an internal or external 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 - bash: pip: command not found - Stack Overflow
I downloaded pip and ran python setup.py install and everything worked just fine. The very next step in the tutorial is to run pip install but before it even tries to find anyt... More on stackoverflow.com
๐ŸŒ stackoverflow.com
installation - How can i use pip command correctly in Python? - Stack Overflow
So, I recently installed Python in my system and followed all the path that it gave. But still, I'm stcuk here, what should i do, please help me. I think that i might have missed any thing in betwe... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
pip
pip.pypa.io โ€บ en โ€บ stable โ€บ cli โ€บ pip
pip - pip documentation v26.0.1
Architecture of pipโ€™s internals ยท Broad functionality overview ยท Repository anatomy & directory structure ยท Configuration File Handling ยท Finding and choosing files (index and PackageFinder) Command Line Interface ยท Options that control the installation process ยท
๐ŸŒ
pip
pip.pypa.io โ€บ en โ€บ stable โ€บ cli
Commands - pip documentation v26.0.1
How pip is used in interactive environments (i.e. CI, CD) ... The general options that apply to all the commands listed below can be found under the pip page in this section.
๐ŸŒ
pip
pip.pypa.io โ€บ en โ€บ stable โ€บ installation
Installation - pip documentation v26.0.1
Architecture of pipโ€™s internals ยท Broad functionality overview ยท Repository anatomy & directory structure ยท Configuration File Handling ยท Finding and choosing files (index and PackageFinder) Command Line Interface ยท Options that control the installation process ยท
๐ŸŒ
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
Homepage ย  https://pip.pypa.io/
๐ŸŒ
pip
pip.pypa.io โ€บ en โ€บ latest โ€บ cli
Commands - pip documentation v26.1.dev0
How pip is used in interactive environments (i.e. CI, CD) ... The general options that apply to all the commands listed below can be found under the pip page in this section.
Find elsewhere
๐ŸŒ
Real Python
realpython.com โ€บ what-is-pip
Using Python's pip to Manage Your Projects' Dependencies โ€“ Real Python
December 22, 2024 - Notice that you use python -m to run pip. The -m switch tells Python to run a module as an executable of the python interpreter. This way, you can ensure that your system default Python version runs the pip command.
๐ŸŒ
Packagecloud
blog.packagecloud.io โ€บ everything-you-want-to-know-about-pip
The pip commands you will use the most in Python | Packagecloud Blog
You can use pip from the command line by typing pip followed by a command, such as install to install a package or uninstall to remove a package.
๐ŸŒ
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

๐ŸŒ
ActiveState
activestate.com โ€บ home โ€บ resources โ€บ quick read โ€บ how to install pip on windows
How to Install Pip on Windows - ActiveState
January 24, 2024 - Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. Successfully installed pip-10.0.1 setuptools-39.2.0 wheel-0.29.0 ยท This command will also install setuptools and wheel if they are not already installed.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ pip-commands-for-python-developers
11 pip Commands For Python Developers - GeeksforGeeks
July 23, 2025 - For Example, pip install pandas --upgrade installs pandas with its updated version containing all functionalities, and libraries. To update all packages at once, you need to initially generate a requirements.txt file using the command pip freeze > requirements.txt, this file contains all the packages, and to update all packages you just need to update the requirements.txt file.
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
Initial release 28 October 2008 (17 years ago) (2008-10-28)
Factsheet
pip
Original author Ian Bicking
Initial release 28 October 2008 (17 years ago) (2008-10-28)
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Pip_(package_manager)
pip (package manager) - Wikipedia
October 25, 2025 - Pip's command-line interface allows the install of Python software packages by issuing a command: pip install some-package-name
๐ŸŒ
Pip
pip.pypa.io
pip documentation v26.0.1
Architecture of pipโ€™s internals ยท Broad functionality overview ยท Repository anatomy & directory structure ยท Configuration File Handling ยท Finding and choosing files (index and PackageFinder) Command Line Interface ยท Options that control the installation process ยท
๐ŸŒ
DEV Community
dev.to โ€บ dev0928 โ€บ commonly-used-python-pip-commands-255d
Commonly used Python - pip commands - DEV Community
May 19, 2020 - As name suggests, this command is used to install package(s). Some of the options that can used with the install command are: $ pip install flask-bootstrap # installs latest available version $ pip install flask-bootstrap==2.3.2.2 # installs ...