HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pip freeze — List installed packages in requirements format. More information: <https://pip.pypa.io/en/stable/cli

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandformatclipip freezerequirementslistinstalledpackages

Problem

How to use the pip freeze command: List installed packages in requirements format. More information: <https://pip.pypa.io/en/stable/cli/pip_freeze/>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/pip freeze

Revisions (0)

No revisions yet.