Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions docs/html/cli/pip_freeze.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ Options

.. pip-command-options:: freeze

.. note::

By default, ``pip freeze`` omits some bootstrap tooling so the output focuses on
your project’s dependencies. In Python **3.11 and earlier**, this means ``pip``,
``setuptools`` and ``wheel`` are skipped by default; in Python **3.12 and later**,
only ``pip`` is skipped. Use ``--all`` to include those entries as well when you
need a complete environment snapshot. Note that ``pip freeze`` reports what is
installed—it does **not** compute a lockfile or a solver result.


Examples
========
Expand Down Expand Up @@ -73,6 +82,49 @@ Examples
env1\bin\python -m pip freeze > requirements.txt
env2\bin\python -m pip install -r requirements.txt

#. Compare default output with ``--all``.

The exact entries vary by Python version; on Python 3.12 and later only
``pip`` is omitted by default.

.. tab:: Unix/macOS

.. code-block:: console

$ python -m pip freeze
certifi==...
idna==...
requests==...
urllib3==...

$ python -m pip freeze --all
certifi==...
idna==...
requests==...
urllib3==...
pip==...
setuptools==...
wheel==...

.. tab:: Windows

.. code-block:: console

C:\> py -m pip freeze
certifi==...
idna==...
requests==...
urllib3==...

C:\> py -m pip freeze --all
certifi==...
idna==...
requests==...
urllib3==...
pip==...
setuptools==...
wheel==...


Fixing "Permission denied:" errors
==================================
Expand Down
1 change: 1 addition & 0 deletions news/13563.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarified ``pip freeze --all`` documentation and added a concise before/after example.
Loading