From 5cd7dca9b01da5da1883e99b1e831dbd76d98f2a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 12 Dec 2024 10:47:53 -0800 Subject: [PATCH] Update install.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 37637e6..47345e5 100755 --- a/install.sh +++ b/install.sh @@ -72,8 +72,12 @@ if [ $venv == "y" ]; then if [ -f venv/bin/activate ]; then printf "\nFound virtual environment for python\n" else + printf "\nVirtual environment not found, trying `sudo apt-get install python3-venv`\n" sudo apt-get install python3-venv - printf "\nPython3 venv module not found, please install python3-venv with your OS if not already done. re-run the script\n" + fi + # double check for python3-venv + if ! python3 -m venv --help &> /dev/null; then + printf "Python3 venv module not found, please install python3-venv with your OS\n" exit 1 fi