conda export base environment to yml code example
Example 1: conda environment.yml
conda env create -f environment.yml
Example 2: conda write environment.yml
conda env export > environment_droplet.yml
Example 3: conda create environment from file
conda env create -f environment.yml
Example 4: anaconda clone environment
conda create --name myclone --clone myenv