Skip to content

Instantly share code, notes, and snippets.

@SpotlightForBugs
Created October 5, 2022 19:18
Show Gist options
  • Save SpotlightForBugs/fbdc39a62417eaf09d528e3ba4d62093 to your computer and use it in GitHub Desktop.
Save SpotlightForBugs/fbdc39a62417eaf09d528e3ba4d62093 to your computer and use it in GitHub Desktop.
Update the requirements.txt file of a python project
#this file reads the file csv_tools.py and updates the requirements.txt file with the packages used in the file using the pipreqs module
import os
os.system("python -m pipreqs.pipreqs "+(os.getcwd())+" --force")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment