Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make new anaconda env from yml file

enter image description here

I installed anaconda in C:\Program Files\Anaconda3. Every time to create a new env, I just do cmd and write:

conda create --name envname python=3.5 

But how can i install a new env from the "environments.yml" file

enter image description here

like image 460
Jarvis098 Avatar asked Dec 29 '17 01:12

Jarvis098


People also ask

How do I create a custom Conda environment?

You can create a custom conda environment from a conda compatible environment file ( environment. yaml ) using the odsc conda create command. By default, the create option also installs additional libraries to ensure that the conda environment is compatible with JupyterLab and the OCI services.

What is Yml file in Anaconda?

Anaconda Server enables you to upload, move, copy, share, and download an environment yaml file. An environment is a folder or directory that contains a specific collection of conda packages and their dependencies. This allows them to be maintained and run separately without interference from each other.


1 Answers

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

conda env create --name envname --file=environments.yml 
like image 180
Mike Müller Avatar answered Sep 19 '22 03:09

Mike Müller