create environment in anaconda using 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