conda get active environment code example
Example 1: conda create environment from file
conda env create -f environment.yml
Example 2: conda activate env
conda activate myenv
conda env create -f environment.yml
conda activate myenv