diff --git a/src/wgd.sh b/src/wgd.sh index b3e59aa..693aeea 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -33,9 +33,9 @@ _check_and_set_venv(){ install_wgd(){ # Check Python3 version - version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 8) else print("0");') + version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 7) else print("0");') if [ $version_pass == "0" ] - then printf "| WGDashboard required Python3.8+ |\n" + then printf "| WGDashboard required Python3.7+ |\n" printf "%s\n" "$dashes" exit 1 fi @@ -45,9 +45,11 @@ install_wgd(){ fi printf "| Installing latest Python dependencies |\n" - # set up the local environment _check_and_set_venv ${VIRTUAL_ENV}/bin/python3 -m pip install -U pip +# ${VIRTUAL_ENV}/bin/python3 -m pip install virtualenv + # set up the local environment + ${VIRTUAL_ENV}/bin/python3 -m pip install -U -r requirements.txt printf "| WGDashboard installed successfully! |\n"