# use pipreqs pip install pipreqs # Then pipreqs pathofyourproject # It's automatically generate requirements.txt