mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 11:46:40 +00:00
fix(python): prefer pip over pip3 when installing python packages
This commit is contained in:
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user