From 29b354b42b5e549d5a7c6b68ce3c7036a65a7cfc Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 9 Jun 2023 14:16:27 +0200 Subject: [PATCH] use force-reinstall not deprecated --force --- tljh/conda.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tljh/conda.py b/tljh/conda.py index ca849e8..834b600 100644 --- a/tljh/conda.py +++ b/tljh/conda.py @@ -113,7 +113,9 @@ def ensure_conda_packages(prefix, packages, force=False): cmd = [conda_executable, "install", "--yes"] if force: - cmd += ["--force"] + # use force-reinstall, e.g. for conda/mamba to ensure everything is okay + # avoids problems with RemoveError upgrading conda from old versions + cmd += ["--force-reinstall"] abspath = os.path.abspath(prefix)