diff --git a/install.sh b/install.sh index 036dd01..300f472 100644 --- a/install.sh +++ b/install.sh @@ -156,6 +156,8 @@ install_package() { apt install -y dnsutils elif [[ $1 == "pip3" ]]; then apt install -y python3-pip + elif [[ $1 == "venv" ]]; then + apt install -y python3-venv elif [[ $1 == "arp" ]]; then apt install -y net-tools fi @@ -181,8 +183,7 @@ check_dependencies() { install_package ${bin##*/} fi done - echo -e "\e[39m[+] Install and prepare Virtual Environment for Python packages\e[39m" - apt install python3-venv + echo -e "\e[39m[+] Create and activate Virtual Environment for Python packages\e[39m" python3 -m venv /usr/share/spyguard/spyguard-venv source /usr/share/spyguard/spyguard-venv/bin/activate echo -e "\e[39m[+] Install Python packages...\e[39m"