pip Commands
The standard Python package installer.All pip pages
- pip download: get wheels for an offline install (pip install --no-index --find-links)pip download -d wheels -r requirements.txt fetches packages and dependencies without installing; pip install --no-index --find-links installs them offline.
- pip freeze > requirements.txt: save installed packages to a requirements filepip freeze > requirements.txt saves every installed package as name==version so pip install -r recreates it. Options, venv rules and the pitfalls of pinning.
- pip list --outdated: find outdated Python packages and upgrade thempip list --outdated shows installed packages with a newer release and their latest version. Filter, get JSON, upgrade with pip install -U and avoid conflicts.
- pip show package: check the installed version of a Python packagepip show requests prints the installed version, location, Requires and Required-by, and exits 1 if missing. Other ways to check a Python package version.