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
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"