Install bundled pip into the current Python environment.
Section: Bootstrap and repair pip
Bootstrap pip in current interpreter or venv
bash
bash
python -m ensurepip --default-pipExplanation
The Python standard library includes `ensurepip` to bootstrap pip when it is missing.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Bootstrap and repair pip
Upgrade bundled pip bootstrap
Upgrade pip using the bundled ensurepip package.
Create and upgrade core dependencies
Create a venv and upgrade pip tools immediately.
Inspect Python resolution in PowerShell
See which python command PowerShell resolves.
Show all python executables on Windows
See multiple Python commands on PATH.
Upgrade pip tooling
Upgrade pip and common packaging helpers in the environment.