change: set pypi index url to https://pypi.org/simple
This commit is contained in:
parent
bea663f594
commit
8731f6800d
|
@ -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")
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue