change python3-venv install

This commit is contained in:
b068931cc450442b63f5b3d276ea4297 2024-01-24 18:16:20 +01:00
parent 65e7cfcd45
commit 5c26c8ed4e

View File

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