-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall_deps.sh
More file actions
executable file
·27 lines (25 loc) · 1.26 KB
/
install_deps.sh
File metadata and controls
executable file
·27 lines (25 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Auto-detect distribution and install dependencies
if command -v apt >/dev/null 2>&1; then
echo "Detected Ubuntu/Debian system, installing dependencies with apt..."
sudo apt update
sudo apt install -y python3-numpy python3-psutil python3-serial python3-evdev python3-pynput python3-yaml python3-pip
elif command -v dnf >/dev/null 2>&1; then
echo "Detected Fedora system, installing dependencies with dnf..."
sudo dnf install -y python3-numpy python3-psutil python3-pyserial python3-evdev python3-pynput python3-pyyaml python3-pip
elif command -v yum >/dev/null 2>&1; then
echo "Detected CentOS/RHEL system, installing dependencies with yum..."
sudo yum install -y python3-numpy python3-psutil python3-pyserial python3-evdev python3-pynput python3-pyyaml python3-pip
else
echo "Warning: Could not detect package manager. Please install dependencies manually:"
echo " - python3-numpy"
echo " - python3-psutil"
echo " - python3-pyserial (or python3-serial on some distributions)"
echo " - python3-evdev"
echo " - python3-pynput"
echo " - python3-yaml (or python3-pyyaml on some distributions)"
echo " - python3-pip"
echo ""
fi
echo "Installing PyInstaller via pip..."
python -m pip install pyinstaller