Output installed packages in JSON format.

Section: Reporting and Auditing

List packages as JSON

bash
bash
python -m pip list --format=json
Explanation

Useful for automation, audits, and environment checks.

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
Sort frozen requirements
Create a sorted requirements snapshot.
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.