Skip to content
Latchkey

pip list: Inspect Installed Packages Command Reference

See exactly what is installed in this environment.

pip list prints installed packages and their versions. It is a quick way to confirm what a CI environment actually resolved to, and to flag outdated dependencies.

Common flags / usage

  • pip list -- human-readable table of installed packages
  • -o, --outdated -- show only packages with newer versions
  • --format json -- machine-readable output for scripts
  • --format freeze -- requirements-style output
  • --not-required -- list packages no other package depends on

Example

shell
- run: pip list --format=json > installed.json
# Audit step: surface outdated dependencies (non-blocking)
- run: pip list --outdated || true

In CI

The default table has header rows that break naive grep/awk parsing; use --format=json or --format=freeze when a script consumes the output. --outdated is handy in a scheduled audit job.

Key takeaways

  • pip list shows every installed distribution and its version.
  • Use --format=json for reliable machine parsing.
  • --outdated surfaces dependencies with newer releases for audits.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →