fix(python): prefer pip over pip3 when installing python packages

This commit is contained in:
2023-03-21 01:22:19 +00:00
parent 06b5b5cd39
commit 96ed44adf3

View File

@@ -28,7 +28,9 @@ install_python_global_packages() {
)
local pipcmd="pip"
if command-exists pip3; then pipcmd="pip3"; fi
if ! command-exists pip && command-exists pip3; then
pipcmd="pip3"
fi
"$pipcmd" install --upgrade setuptools
"$pipcmd" install --upgrade "${packages[@]}"