conda new environment with certain packages code example
Example 1: conda create environment without packages
conda create --name myenv python=3.8 --no-default-packages
Example 2: conda create environment from file
conda env create -f environment.yml