create environment in conda code example

Example 1: conda create environment

conda create -n myenv python=3.6

Example 2: conda create environment without packages

conda create --name myenv python=3.8 --no-default-packages

Example 3: conda env

conda create -n myenv python=3.6

Example 4: how to make a conda environment

conda create --name myenv
#to activate environment:
conda activate myenv

Example 5: delete conda environment

conda remove --name myenv --all

Example 6: conda create environment from file

conda env create -f environment.yml

Tags:

Cpp Example