Create a sorted requirements snapshot.

Section: Reporting and Auditing

Sort frozen requirements

bash
bash
python -m pip freeze | sort > requirements.lock.txt
Explanation

Sorting makes diffs easier to review in version control.

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 Reporting and Auditing
Generate JSON install report
Write a structured report during installation.
OpenIn sheetbashsame section
List packages as JSON
Output installed packages in JSON format.
OpenIn sheetbashsame section
Install with required hashes
Require hash verification for all requirements.
Constrain a direct install
Apply version constraints to a direct install.
Build a local wheelhouse
Download all requirements into a local artifact directory.
Maintain layered requirement files
Example pattern for base + dev requirement layering.