Instantly share code, notes, and snippets.
pip list --format=freeze > requirements.txt
Source: this SO answer
Comments are disabled for this gist.