python code switch conda environment code example Example 1: conda list environments conda info --envs Example 2: delete conda environment conda remove --name myenv --all