check conda env code example
Example 1: 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 2: conda list environments
conda info --envs
Example 3: conda delete environment
conda remove --name myenv --all
Example 4: anaconda remove environment
conda env remove -n ENV_NAME