
pip is Python's package installer. Knowing which version you have helps when a package will not install, when a tutorial needs a newer feature, or when you have several Python versions and are not sure which pip belongs to which. This guide shows how to check the pip version in Command Prompt, PowerShell, the Linux or macOS terminal and from inside Python, how to match pip to the right Python, how to upgrade pip, and how to fix "pip is not recognized".
Quick answerRun pip --version. To be sure you are checking the pip for a particular Python, run python -m pip --version (Linux/macOS: python3 -m pip --version; Windows: py -m pip --version). The output looks like:
pip 26.3 from /usr/lib/python3/dist-packages/pip (python 3.14)
It shows the pip version, where it is installed, and which Python it belongs to.
Method 1: Command line
Windows (Command Prompt or PowerShell):
pip --version
py -m pip --version
Linux and macOS:
pip3 --version
python3 -m pip --version
On many Linux systems and on macOS, pip may not exist or may point to an old Python, so use pip3 or python3 -m pip. pip -V is a short form of pip --version.
Method 2: Check pip for a specific Python version
If you have more than one Python installed, each has its own pip. Call it through the interpreter you care about:
# Windows: list installed Pythons, then pick one
py --list
py -3.14 -m pip --version
# Linux / macOS
python3.14 -m pip --version
Using python -m pip for installs as well as version checks avoids installing packages into the wrong Python.
Method 3: pip show
python -m pip show pip
This shows the version plus the install location, licence and dependencies. The same command works for any package, for example pip show requests.
Method 4: From inside Python
import importlib.metadata
print(importlib.metadata.version("pip"))
This works for any installed package. The older import pip; print(pip.__version__) also works, but importing pip in your own code is not supported, so prefer importlib.metadata.
To check the Python version from inside Python:
import sys
print(sys.version)
Check pip inside a virtual environment
Activate the environment first, then check:
# Linux / macOS
source .venv/bin/activate
pip --version
# Windows
.venv\Scripts\activate
pip --version
The path in the output should point inside your .venv folder. Each virtual environment has its own copy of pip.
What is the latest pip version?
pip releases a new feature version every three months, numbered by year: 26.1 in April 2026, 26.2 in July and 26.3 in November 2026. New Python releases bundle a recent pip, and you can check the current version on pip's PyPI page or simply upgrade.
How to upgrade pip
# Windows
py -m pip install --upgrade pip
# Linux / macOS (inside a virtual environment)
python -m pip install --upgrade pip
Always upgrade with python -m pip; on Windows, running pip install --upgrade pip can fail because pip.exe cannot replace itself while running.
On Ubuntu 23.04+, Debian 12+ and Fedora, the system Python is marked "externally managed", so pip install outside a virtual environment shows an externally-managed-environment error. Do not override it with --break-system-packages on a server. Instead, create a virtual environment (python3 -m venv .venv) and use pip there, or install the distribution's package (sudo apt install python3-requests). For command-line tools, pipx installs each one in its own environment.
Fix "pip is not recognized" on Windows
- Use
py -m pip, which works even when pip is not on PATH. - Reinstall Python from python.org and tick Add python.exe to PATH, or add the
Scriptsfolder of your Python installation to PATH. - If pip itself is missing, run
py -m ensurepip --upgrade.
On Ubuntu or Debian, if pip is missing, install it with sudo apt install python3-pip (and python3-venv for virtual environments).
Frequently asked questions
How do I check the pip version in CMD?
Open Command Prompt and run pip --version or py -m pip --version.
What is the difference between pip and pip3?
pip3 always refers to a Python 3 pip. On systems where Python 2 was once installed, pip could point to Python 2. Today both usually point to Python 3, but python3 -m pip removes any doubt.
How do I check pip version in a Jupyter notebook?
Run %pip --version in a cell. The %pip magic uses the notebook's own Python.
How do I downgrade pip?
Install a specific version, for example python -m pip install pip==25.3.


