--- a/src/eric7/Preferences/__init__.py Wed Jun 05 17:11:54 2024 +0200 +++ b/src/eric7/Preferences/__init__.py Thu Jun 06 18:01:54 2024 +0200 @@ -1618,6 +1618,8 @@ # defaults for pip pipDefaults = { "PipSearchIndex": "", # used by the search command + "ExcludeGlobalEnvironments": True, + # don't show global environments in selector "ExcludeCondaEnvironments": True, # don't show conda environments in selector # defaults for the package vulnerability check @@ -4024,7 +4026,11 @@ @return the requested pip value @rtype Any """ - if key in ("ExcludeCondaEnvironments", "VulnerabilityCheckEnabled"): + if key in ( + "ExcludeGlobalEnvironments", + "ExcludeCondaEnvironments", + "VulnerabilityCheckEnabled", + ): return toBool(Prefs.settings.value("Pip/" + key, Prefs.pipDefaults[key])) elif key in ("VulnerabilityDbCacheValidity",): return int(Prefs.settings.value("Pip/" + key, Prefs.pipDefaults[key]))