conda activate environment miniconda code example
Example 1: conda write environment.yml
conda env export > environment_droplet.yml
Example 2: create new env in anaconda
conda create --name myenv
conda env export > environment_droplet.yml
conda create --name myenv