From 4aef4b3de70421e43f619c9dc11ec74c540271d6 Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Thu, 30 Jan 2020 19:59:44 +0200 Subject: [PATCH] Only install miniconda if no prev installs exist --- tljh/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tljh/installer.py b/tljh/installer.py index 8497f24..f4d6a1e 100644 --- a/tljh/installer.py +++ b/tljh/installer.py @@ -242,7 +242,8 @@ def ensure_user_environment(user_requirements_txt_file): conda_version = '4.5.8' # If no prior miniconda installation is found, we can install a newer version - if not conda.check_miniconda_version(USER_ENV_PREFIX, miniconda_old_version): + if not conda.check_miniconda_version(USER_ENV_PREFIX, miniconda_old_version) and + not conda.check_miniconda_version(USER_ENV_PREFIX, miniconda_version): miniconda_version = '4.7.10' miniconda_installer_md5 = "1c945f2b3335c7b2b15130b1b2dc5cf4" conda_version = '4.8.1'