Install into Python 3.11 specifically.
Section: Prefer python -m pip
Use pip with a specific Python version
bash
bash
python3.11 -m pip install requestsExplanation
Great when several minor versions are installed side-by-side.
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 Python 3 explicitly
Install a package with a specific interpreter family.
Install requirements into an active venv
Install project dependencies after activation.
Install to user site packages
Install packages into the user site directory.
Install despite externally managed environment
Override system package management protections when necessary.