Snapshot the current environment to a requirements file.
Section: Daily package workflow
Write requirements.txt
bash
bash
python -m pip freeze > requirements.txtExplanation
Creates a plain-text dependency snapshot in pip-compatible format.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Daily package workflow
Install from requirements file
Install dependencies from a requirements file.
Install using a constraints file
Apply version constraints during installation.
Upgrade pip tooling
Upgrade pip and common packaging helpers in the environment.