diff options
author | Chris Deligeorgis <[email protected]> | 2021-08-26 12:53:29 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-08-26 12:53:29 +0200 |
commit | 14f129cf26a9814dc8f5fa46f483a588b5a813b0 (patch) | |
tree | a3cb8f2282259c9ec8aecb38f6a104b53e25097c | |
parent | 5b94e3cee2c4405e98c9c0e8769670723a1f4bae (diff) |
[Refactor]: use "python3 -m pip" in the install script (#1398)
-rwxr-xr-x | utils/installer/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/installer/install.sh b/utils/installer/install.sh index 355b0ecc..beef47fd 100755 --- a/utils/installer/install.sh +++ b/utils/installer/install.sh @@ -171,14 +171,14 @@ function install_nodejs_deps() { function install_python_deps() { echo "Verifying that pip is available.." if ! python3 -m ensurepip &>/dev/null; then - if ! command -v pip3 &>/dev/null; then + if ! python3 -m pip --version &>/dev/null; then print_missing_dep_msg "pip" exit 1 fi fi echo "Installing with pip.." for dep in "${__pip_deps[@]}"; do - pip3 install --user "$dep" + python3 -m pip install --user "$dep" done echo "All Python dependencies are succesfully installed" } |