how to deactivate environment conda code example Example 1: conda deactivate conda deactivate Example 2: switch environment conda conda activate environment_name