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")

View File

@ -139,8 +139,8 @@ function main() {
if [[ -f $HOME/.hrp/venv/bin/pip3 ]]; then
echoInfo "Upgrade httprunner..."
echo "$ $HOME/.hrp/venv/bin/pip3 install --upgrade httprunner==$version"
$HOME/.hrp/venv/bin/pip3 install --upgrade httprunner==$version
echo "$ $HOME/.hrp/venv/bin/pip3 install --upgrade httprunner==$version --index-url https://pypi.org/simple"
$HOME/.hrp/venv/bin/pip3 install --upgrade httprunner==$version --index-url https://pypi.org/simple
fi
}