Bladeren bron

[Refactor]: use "python3 -m pip" in the install script (#1398)

Chris Deligeorgis 3 jaren geleden
bovenliggende
commit
14f129cf26
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      utils/installer/install.sh

+ 2 - 2
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"
 }