Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

auto generate requirements.txt python

# You can use the following code to generate a requirements.txt file:
> pip install pipreqs
> pipreqs /path/to/project

# other popular way 
> pip freeze

# pip freeze saves all packages in the environment including those that
# you don't use in your current project. (so use wisely)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #auto #generate #python
ADD COMMENT
Topic
Name
1+8 =