In the directory containing the yaml file, run
conda-env create -f environment.yaml
environment.yaml is the file listing the required libraries