list environment python code example Example 1: create new env in anaconda conda create --name myenv Example 2: activate environment conda conda activate myenv