Skip to content

Instantly share code, notes, and snippets.

@sainak
Last active June 5, 2021 16:44
Show Gist options
  • Save sainak/639d7ef618336f1d821b370a8d6bc0cc to your computer and use it in GitHub Desktop.
Save sainak/639d7ef618336f1d821b370a8d6bc0cc to your computer and use it in GitHub Desktop.

Better requitements.txt

install pipdeptree
pip install pipdeptree
pipdeptree -f 2>/dev/null | grep -v '^ ' | tee requirements.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment