To create an environment called env_from_file from a .yml file called environment.yml, you can run the command:
conda env create --file environment.yml --name env_from_file
To create an environment called env_from_file from a .yml file called environment.yml, you can run the command:
conda env create --file environment.yml --name env_from_file