pip-freeze - Man Page
description of pip freeze command
Examples (TL;DR)
- List installed packages:
pip freeze
- List installed packages and write it to the
requirements.txt
file:pip freeze > requirements.txt
- List installed packages in a virtual environment, excluding globally installed packages:
pip freeze --local > requirements.txt
- List installed packages in the user-site:
pip freeze --user > requirements.txt
- List all packages, including
pip
,distribute
,setuptools
, andwheel
(they are skipped by default):pip freeze --all > requirements.txt
Description
Output installed packages in requirements format.
packages are listed in a case-insensitive sorted order.
Usage
python -m pip freeze [options]
Options
- -r, ā--requirement <file>
Use the order in the given requirements file and its comments when generating output. This option can be used multiple times.
(environment variable: PIP_REQUIREMENT)
- -l, ā--local
If in a virtualenv that has global access, do not output globally-installed packages.
(environment variable: PIP_LOCAL)
- --user
Only output packages installed in user-site.
(environment variable: PIP_USER)
- --path <path>
Restrict to the specified installation path for listing packages (can be used multiple times).
(environment variable: PIP_PATH)
- --all
Do not skip these packages in the output: pip
(environment variable: PIP_ALL)
- --exclude-editable
Exclude editable package from output.
(environment variable: PIP_EXCLUDE_EDITABLE)
- --exclude <package>
Exclude specified package from the output
(environment variable: PIP_EXCLUDE)
Author
pip developers
Copyright
The pip developers
Referenced By
The man pages pip-3.13-freeze(1), pip3.13-freeze(1), pip-3-freeze(1) and pip3-freeze(1) are aliases of pip-freeze(1).