create environment file in yml in conda code example
Example 1: conda write environment.yml
conda env export > environment_droplet.yml
Example 2: conda save environment to yaml
# save conda env to .yml
conda env export > environment.yml
conda env export > environment_droplet.yml
# save conda env to .yml
conda env export > environment.yml