delete a conda environment code example

Example 1: conda remove environment

conda remove --name myenv --all

Example 2: conda create environment based on requirements.txt

# using pip
pip install -r requirements.txt

# using Conda
conda create --name <env_name> --file requirements.txt

Example 3: conda env

conda create -n myenv python=3.6

Example 4: conda delete environment

conda remove --name myenv --all

Example 5: conda env

conda create --name myenv

Example 6: delete conda env

conda env remove -n ENV_NAME

Tags:

Cpp Example