Reputation: 889
Is it possible to create a conda environment from two yaml files?
something like
conda env create -f env1.yml -f env2.yml
or create a enviornment from one yaml file, then update the environment with the second yaml file?
conda env create -f env1.yml conda env update -f env2.yml
Upvotes: 3
Views: 3025
Reputation: 1174
You can use the following steps:
conda env create -f env1.yml
(create the new environment)conda env update --name env_name --file env2.yml --prune
(add the additional modules)Upvotes: 1
Reputation: 53
@sam is right, see relevant github issue: https://github.com/conda/conda/issues/9294
A potential work around is to use conda-merge, with for example:
pip install conda-merge
conda-merge env1.yml env2.yml > env.yml
conda env create -f env.yml
Upvotes: 2
Reputation: 11
Does not seem to work. conda env create
only uses the final --file
argument and ignores the others. conda create
and conda update
do not support yaml files.
Upvotes: 1