get list of environment conda code example Example 1: anaconda virtual environment LIST conda env list Example 2: activate environment conda conda activate myenv