mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
pip-freeze: add page (#12184)
This commit is contained in:
parent
be0823bbb6
commit
7c3fdfb093
1 changed files with 24 additions and 0 deletions
24
pages/common/pip-freeze.md
Normal file
24
pages/common/pip-freeze.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue