how to create new environment in anaconda with environment.yml file code example
Example 1: conda environment.yml
conda env create -f environment.yml
Example 2: how to create anaconda environment.yml file
conda env export > environment.yml
conda env create -f environment.yml
conda env export > environment.yml