conda save environment code example

Example 1: conda export environment

# conda export environment.yml
conda env export > environment.yml

# conda create environment from file (Same environment name)
conda env create -f environment.yml

Example 2: conda env

conda create -n myenv python=3.6

Example 3: conda create environment from file

conda env create -f environment.yml

Example 4: new env in conda

conda create --name myenv

Example 5: activating anaconda environment

conda activate myenv

Example 6: anaconda clone environment

conda create --name myclone --clone myenv

Tags:

Cpp Example