From 7c3fdfb093fdaeb0a37784c4ff32b285d1c2c2da Mon Sep 17 00:00:00 2001 From: Ali Date: Sun, 4 Feb 2024 14:12:06 +1030 Subject: [PATCH] pip-freeze: add page (#12184) --- pages/common/pip-freeze.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/pip-freeze.md diff --git a/pages/common/pip-freeze.md b/pages/common/pip-freeze.md new file mode 100644 index 000000000..273ccb90b --- /dev/null +++ b/pages/common/pip-freeze.md @@ -0,0 +1,24 @@ +# pip freeze + +> List installed packages in requirements format. +> More information: . + +- 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`