Skip to content

Instantly share code, notes, and snippets.

@sandman
Created January 2, 2023 15:26
Show Gist options
  • Save sandman/23164c6e85885ec05b792b6f34ee2f69 to your computer and use it in GitHub Desktop.
Save sandman/23164c6e85885ec05b792b6f34ee2f69 to your computer and use it in GitHub Desktop.
Automatically generate requirements.txt
pip3 install pip-tools pipreqs
# pipreqs generates a requirements.in file and pip-compile generates the requirements.txt from it
pipreqs --savepath=requirements.in && pip-compile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment