activate conda environment in cmd code example Example 1: conda activate environment conda activate myenv Example 2: conda activate virtual environment conda activate env-name