Answers for "how to generate requirements.txt in python"

3

create requirements.txt python

pip list --format=freeze > requirements.txt
Posted by: Guest on August-11-2021
0

create requirements.txt python

pip3 freeze > requirements.txt  # Python3
pip freeze > requirements.txt  # Python2
Posted by: Guest on September-13-2021
-1

python generate requirements.txt

# First:
pip install pipreqs

# Then:
pipreqs path/to/project

# There is now a requirements.txt file in the project folder.
Posted by: Guest on February-10-2021

Code answers related to "how to generate requirements.txt in python"

Python Answers by Framework

Browse Popular Code Answers by Language