pip
PronunciationPIP
Definition
pip is Python's package installer. It downloads packages, usually from PyPI, and installs them into the current environment.
Where you hear it
In every Python setup guide (pip install ...), README install sections, and CI scripts.
Examples
Run
pip install -r requirements.txtto get everything.Use
python -m pipso you are sure which Python it belongs to.I used pip to install the library into the project's virtual environment.
Common mistake
Running pip install outside a virtual environment, which changes the whole system's Python.
Don't confuse with
PyPI, which is the website and index that stores the packages. pip is the tool that fetches from it.
Say it at work
- In a meeting or chat
Upgrade pip first, then install.
- In an email or ticket
pip says there is a version conflict.
Keep exploring
More in DevOps & Cloud