|
|
@@ -46,13 +46,16 @@ install_dependencies() {
|
|
|
apt-get update
|
|
|
apt-get install -y python3 python3-pip python3-venv
|
|
|
elif command -v yum &> /dev/null; then
|
|
|
- yum install -y python3 python3-pip python3-venv
|
|
|
+ yum install -y python3 python3-pip
|
|
|
+ # python3-venv not available in CentOS/RHEL, use built-in venv
|
|
|
elif command -v dnf &> /dev/null; then
|
|
|
- dnf install -y python3 python3-pip python3-venv
|
|
|
+ dnf install -y python3 python3-pip
|
|
|
+ # python3-venv not needed in newer Fedora, venv is built-in
|
|
|
elif command -v pacman &> /dev/null; then
|
|
|
- pacman -S --noconfirm python python-pip python-virtualenv
|
|
|
+ pacman -S --noconfirm python python-pip
|
|
|
+ # venv is built into Python 3.3+
|
|
|
else
|
|
|
- print_error "Unsupported package manager. Please install Python 3, pip, and venv manually."
|
|
|
+ print_error "Unsupported package manager. Please install Python 3 and pip manually."
|
|
|
exit 1
|
|
|
fi
|
|
|
}
|