Commands.app

python -m pip

Package Management

Run pip as a Python module

Examples
Common usage examples

Install package via module

python -m pip install requests

Upgrade pip itself

python -m pip install --upgrade pip
Notes
  • Ensures pip runs with correct Python version
  • Useful when multiple Python versions are installed
Related Commands
You might also find these useful