activate environment in python from anaconda code example Example 1: conda list environments conda info --envs Example 2: conda activate env conda activate myenv