conda virtual environment activate file code example Example 1: create an environment in conda conda create --name myenv Example 2: conda activate env conda activate myenv