How do I put all my Python dependencies into a single requirement.txt file?
Asked 2 years ago
Managing Python dependencies can some time be a hard task. It's always better to put in a requirement.txt file.
Dennis Gay
Wednesday, August 17, 2022
You can create a requirements.txt file consisting of all that contains all of your requirements / packages for your project. Make sure the file you create has all the modules or packages with their versions with them. After creating a requirements.txt file you can now successfully install all of the packages in the file.
The output will give the list of which modules are installed.
pip install -r requirements.txt
Please follow our Community Guidelines