mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 17:47:35 +00:00
30 lines
680 B
Plaintext
30 lines
680 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# pip freeze
|
|
|
|
> List installed packages in requirements format.
|
|
> More information: <https://pip.pypa.io/en/stable/cli/pip_freeze/>.
|
|
|
|
- List installed packages:
|
|
|
|
`pip freeze`
|
|
|
|
- Write installed packages to the `requirements.txt` file:
|
|
|
|
`pip freeze > requirements.txt`
|
|
|
|
- List installed packages in a virtual environment, excluding globally installed packages:
|
|
|
|
`pip freeze {{[-l|--local]}}`
|
|
|
|
- List installed packages in the user-site:
|
|
|
|
`pip freeze --user`
|
|
|
|
- List all packages, including `pip`, `distribute`, `setuptools`, and `wheel` (they are skipped by default):
|
|
|
|
`pip freeze --all`
|