If you are using a virtual environment just use the following line.
pip freeze > requirements.txt
It commands to create the requirements file first.
Or in dockerfile, RUN pip freeze > requirements.txt .
If you are using a virtual environment just use the following line.
pip freeze > requirements.txt
It commands to create the requirements file first.
Or in dockerfile, RUN pip freeze > requirements.txt .