pip

Python's standard package installer, which downloads packages from the Python Package Index and installs them.

In more detail

Inside an activated virtual environment, pip installs into that environment only. Running it as python -m pip guarantees it installs for the Python you mean, and pip install -r requirements.txt installs the packages listed in a requirements file.

Examples

pip install --quiet ansible-core
pip install -r requirements.txt
python -m pip install -r requirements.lock
python -m pip install requests

Related terms

Taught in

References