From 4a4d4741e5bfffbcdbdae3d80a276c2f9e5f2a68 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 23 Jul 2023 19:07:40 -0600 Subject: [PATCH] fix pip & venv installation --- ishare2 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ishare2 b/ishare2 index e82fc84..6b2288a 100755 --- a/ishare2 +++ b/ishare2 @@ -1568,14 +1568,18 @@ function ishare2_gui_install() { # Make sure pip3 is installed for Python 3.11 sudo apt-get update curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 + + # Check if pip3.11 is installed and check version pip3.11 -V + pip3.11 -V if [[ $? -ne 0 ]]; then - echo "${RED} [-] Error installing pip3 for Python 3.11. ${NO_COLOR}" - echo "${RED} [-] Please install pip3 manually for Python 3.11 and try again. ${NO_COLOR}" + echo "${RED} [-] Error installing pip3.11. ${NO_COLOR}" + echo "${RED} [-] Please install pip3.11 manually and try again. ${NO_COLOR}" + echo "${RED} [-] You can find more information here: https://pip.pypa.io/en/stable/installing/ ${NO_COLOR}" exit 1 fi # Make sure venv is installed for Python 3.11 - sudo apt-get install -y python3.11-venv + sudo apt install -y python3.11-venv if [[ $? -ne 0 ]]; then echo "${RED} [-] Error installing venv for Python 3.11. ${NO_COLOR}" echo "${RED} [-] Please install venv manually for Python 3.11 and try again. ${NO_COLOR}"