I'm wondering how I can create a suitable requirements.txt for my Python 3 application?
Simply open a terminal and navigate to the folder you want your requirements file to be in. You can then activate a virtual environment using venv or conda. It will take every package you have installed on that environment.
Usage of the pipreqs is very easy. You just need to provide the root location of your project and the pipreqs automatically generate a requirements. txt file in root folder.
type following line in your command prompt
pip freeze > requirements.txt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With