-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
48 lines (41 loc) · 1.1 KB
/
install.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
# Install Python and pip if not installed
echo "Checking for Python installation..."
if ! command -v python3 &> /dev/null
then
echo "Python is not installed. Installing Python..."
sudo apt update && sudo apt install python3 python3-pip -y
else
echo "Python is already installed."
fi
# Install required Python modules
echo "Installing required Python modules..."
# List of Python modules to install
modules=(
"requests"
"selenium"
"beautifulsoup4"
"lxml"
"pycryptodome"
"fake_useragent"
"pyfiglet"
"sklearn"
"numpy"
"scikit-learn"
"tensorflow"
"keras"
"tensorflow-gpu"
)
for module in "${modules[@]}"; do
pip3 install "$module" || {
echo "Failed to install $module. Please check the error messages.";
exit 1;
}
done
# Install additional dependencies for system utilities (e.g., curl, wget, etc.)
echo "Installing additional system dependencies..."
sudo apt install curl wget git -y
# Clone any repositories if needed
# Example:
# git clone https://github.com/Cyberheroess/Saldiscript.git
echo "Installation complete!"