From 357b24079d88ccbd1116352783a886afcd9f6a76 Mon Sep 17 00:00:00 2001 From: AuroraZiling <2935876049@qq.com> Date: Sun, 5 Nov 2023 08:50:48 +0800 Subject: [PATCH] fix: fewer retries when upgrade --- src/PipManager/Services/Environment/EnvironmentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PipManager/Services/Environment/EnvironmentService.cs b/src/PipManager/Services/Environment/EnvironmentService.cs index 8e2df66..da80c86 100644 --- a/src/PipManager/Services/Environment/EnvironmentService.cs +++ b/src/PipManager/Services/Environment/EnvironmentService.cs @@ -223,7 +223,7 @@ public bool CheckEnvironmentExists(EnvironmentItem environmentItem) { FileName = _configurationService.AppConfig!.CurrentEnvironment!.PythonPath, Arguments = - $"-m pip install --upgrade \"{packageName}\" -i {_configurationService.GetUrlFromPackageSourceType()}", + $"-m pip install --upgrade \"{packageName}\" -i {_configurationService.GetUrlFromPackageSourceType()} --retries 1 --timeout 6", UseShellExecute = false, RedirectStandardError = true, CreateNoWindow = true