mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
use force-reinstall
not deprecated --force
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user