pip freeze > requirements.txt

Category: Python & pip

pip freeze > requirements.txt

Save current environment packages to requirements file

Saves the full list of installed packages (with versions) to requirements.txt for sharing or reproduction.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.