From 5c26c8ed4e2d32a36bb519a983222f04043df23e Mon Sep 17 00:00:00 2001 From: b068931cc450442b63f5b3d276ea4297 <77171083+b068931cc450442b63f5b3d276ea4297@users.noreply.github.com> Date: Wed, 24 Jan 2024 18:16:20 +0100 Subject: [PATCH] change python3-venv install --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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"