Install a package with a specific interpreter family.
Section: Prefer python -m pip
Use pip with Python 3 explicitly
bash
bash
python3 -m pip install requestsExplanation
Safer than calling `pip` directly on systems with multiple Python installs.
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 Prefer python -m pip
Use pip with a specific Python version
Install into Python 3.11 specifically.
Install requirements into an active venv
Install project dependencies after activation.