How to make new anaconda env from yml file How to make new anaconda env from yml file python-3.x python-3.x

How to make new anaconda env from yml file


conda env create allows an option --file for an environment file:

conda env create --name envname --file=environments.yml


conda env create --file environment.yml


The above answers did not work for me with conda 4.7.12, but this (from the Anaconda documentation) did:

conda env create -f environment.yml