Create a sorted requirements snapshot.
Section: Reporting and Auditing
Sort frozen requirements
bash
bash
python -m pip freeze | sort > requirements.lock.txtExplanation
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.
Maintain layered requirement files
Example pattern for base + dev requirement layering.