conda clone environment code example

Example 1: conda remove environment

conda remove --name myenv --all

Example 2: conda copy environment

conda create --clone py35 --name py35-2

Example 3: conda create environment python 3.6

conda create -n myenv python=x.x

Example 4: 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 5: conda env

conda create -n myenv python=3.6

Example 6: anaconda duplicate environment

conda create --name myclone --clone myenv

Tags:

Cpp Example