LinuxCommandLibrary

pip-freeze

TLDR

List installed packages

$ pip freeze
copy
Output to requirements file
$ pip freeze > requirements.txt
copy
Exclude editable packages
$ pip freeze --exclude-editable
copy
Exclude specific packages
$ pip freeze --exclude [package]
copy

SYNOPSIS

pip freeze [options]

DESCRIPTION

pip freeze outputs installed packages in requirements format. Each package shown with its exact version (package==version). Standard method for capturing Python environment dependencies for reproducibility.

PARAMETERS

-r, --requirement file

Use requirements file order.
-l, --local
Only show virtualenv packages.
--user
Only show user packages.
--exclude package
Exclude package from output.
--exclude-editable
Exclude editable packages.

SEE ALSO

pip(1), pip-list(1), pip-install(1)

Copied to clipboard