change environment anaconda code example
Example 1: conda remove environment
conda remove --name myenv --all
Example 2: list conda environments
conda info --envs
conda env list
Example 3: 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 4: conda env
conda create -n myenv python=3.6
Example 5: anaconda duplicate environment
conda create --name myclone --clone myenv