pip Cheat Sheet/Freeze installed packages

Output pinned installed versions.

Section: Inspect and Verify

Freeze installed packages

bash
bash
python -m pip freeze
Explanation

Typically used to generate `requirements.txt` style output.

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 Inspect and Verify
Check dependency health
Report broken or incompatible installed dependencies.
OpenIn sheetbashsame section
Inspect environment as JSON
Output structured JSON details for the environment.
OpenIn sheetbashsame section
List available versions
Show candidate versions for a package from the index.
OpenIn sheetbashsame section
Download without installing
Fetch distributions locally without modifying the environment.
OpenIn sheetbashsame section
Show pip version
Print the installed pip version and Python path.
Install a package
Install the latest version of a package.