Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a requirements.txt? [duplicate]

I'm wondering how I can create a suitable requirements.txt for my Python 3 application?

like image 728
Daniel Santos Avatar asked Apr 29 '15 08:04

Daniel Santos


People also ask

How do I create a requirements txt Jupyter notebook?

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.

How do I create a Pipreqs requirement text file?

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.


Video Answer


1 Answers

type following line in your command prompt

pip freeze > requirements.txt 
like image 171
Pawan Avatar answered Oct 05 '22 18:10

Pawan