change: set pypi index url to https://pypi.org/simple

This commit is contained in:
debugtalk
2022-06-14 14:02:28 +08:00
parent bea663f594
commit 8731f6800d
2 changed files with 3 additions and 2 deletions

View File

@@ -168,6 +168,7 @@ func InstallPythonPackage(python3 string, pkg string) (err error) {
// install package
err = ExecCommand(python3, "-m", "pip", "install", "--upgrade", pkg,
"--index-url", "https://pypi.org/simple",
"--quiet", "--disable-pip-version-check")
if err != nil {
return errors.Wrap(err, "pip install package failed")