The best way to create the requirements.txt
file from Conda environments is to run the command:
pip list --format=freeze > requirements.txt
Then, using the requirements.txt
we can install the required packages by running:
pip install -r requirements.txt