File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -242,11 +242,10 @@ def ensure_user_environment(user_requirements_txt_file):
242
242
)
243
243
to_upgrade .append (pkg )
244
244
245
- # force reinstall conda/mamba to ensure a basically consistent env
246
- # avoids issues with RemoveError: 'requests' is a dependency of conda
247
- # only do this for 'old' conda versions known to have a problem
248
- # we don't know how old, but we know 4.10 is affected and 23.1 is not
249
- if not is_fresh_install and V (package_versions .get ("conda" , "0" )) < V ("23.1" ):
245
+ # force reinstall conda/mamba to ensure conda doesn't raise error
246
+ # "RemoveError: 'requests' is a dependency of conda" later on when
247
+ # conda/mamba is used to install/upgrade something
248
+ if not is_fresh_install :
250
249
# force-reinstall doesn't upgrade packages
251
250
# it reinstalls them in-place
252
251
# only reinstall packages already present
You can’t perform that action at this time.
0 commit comments