Skip to content

Commit

Permalink
pip-freeze: add page (tldr-pages#12184)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsAlish authored Feb 4, 2024
1 parent be0823b commit 7c3fdfb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pages/common/pip-freeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# pip freeze

> List installed packages in requirements format.
> More information: <https://pip.pypa.io/en/stable/cli/pip_freeze>.
- 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`, and `wheel` (they are skipped by default):

`pip freeze --all > requirements.txt`

0 comments on commit 7c3fdfb

Please sign in to comment.