how to create a new conda environment from a requirements file code example
Example 1: conda create environment based on requirements.txt
# using pip
pip install -r requirements.txt
# using Conda
conda create --name --file requirements.txt
Example 2: conda create environment based on requirements.txt
pip freeze > requirements.txt