LinuxCommandLibrary

pip-list

List installed Python packages with versions

TLDR

List installed packages
$ pip list
copy
List outdated packages
$ pip list --outdated
copy
List in JSON format
$ pip list --format json
copy
List user packages only
$ pip list --user
copy
List editable packages
$ pip list --editable
copy
List packages not required by others
$ pip list --not-required
copy
Exclude a package from output
$ pip list --exclude [pip] --exclude [setuptools]
copy

SYNOPSIS

pip list [options]

DESCRIPTION

pip list displays installed Python packages with their versions. Can filter by outdated, up-to-date, or editable packages. Supports multiple output formats including JSON for scripting.

PARAMETERS

-o, --outdated

Show only outdated packages.
-u, --uptodate
Show only up-to-date packages.
-e, --editable
Show only editable packages.
-l, --local
Show only virtualenv packages.
--user
Show only user packages.
--format format
Output format (columns, freeze, json).
--not-required
Show packages not required by others.
--exclude pkg
Exclude specified package from output (can be repeated).
--path dir
Restrict to packages in specified installation path.
--exclude-editable
Exclude editable packages from output.
--include-editable
Include editable packages in output.

SEE ALSO

pip(1), pip-freeze(1), pip-show(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard