pip freeze

Usage

pip freeze [options]

Description

Output installed packages in requirements format.

Options

-r, --requirement <file>

Use the order in the given requirements file and it’s comments when generating output.

-f, --find-links <url>

URL for finding packages, which will be added to the output.

-l, --local

If in a virtualenv that has global access, do not output globally-installed packages.

Examples

  1. Generate output suitable for a requirements file.
$ pip freeze
Jinja2==2.6
Pygments==1.5
Sphinx==1.1.3
docutils==0.9.1
  1. Generate a requirements file and then install from it in another environment.
$ env1/bin/pip freeze > requirements.txt
$ env2/bin/pip install -r requirements.txt