diff --git a/neurodocker/interfaces/interfaces.py b/neurodocker/interfaces/interfaces.py index 811e7c9f..9b09b31d 100644 --- a/neurodocker/interfaces/interfaces.py +++ b/neurodocker/interfaces/interfaces.py @@ -186,7 +186,7 @@ class Miniconda(_BaseInterface): _pretty_name = 'Miniconda' _installed = False - _environments = set() + _environments = {'base'} _env_set = False def __init__(self, *args, create_env=None, use_env=None, @@ -223,7 +223,7 @@ def __init__(self, *args, create_env=None, use_env=None, "cannot conda or pip install when creating environment from" " yaml file") - if self.use_env is not None and not Miniconda._installed: + if self.use_env is not None and self.use_env != "base" and not Miniconda._installed: self._environments.add(self.use_env) Miniconda._installed = True Miniconda._env_set = True