-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-python-deps.sh
More file actions
executable file
·39 lines (30 loc) · 965 Bytes
/
setup-python-deps.sh
File metadata and controls
executable file
·39 lines (30 loc) · 965 Bytes
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
#!/bin/bash
# Setup script for installing Python dependencies required by the tools
echo "Installing Python dependencies..."
# Check if pip is installed
if ! command -v pip &>/dev/null; then
echo "pip not found. Installing pip..."
if command -v apt-get &>/dev/null; then
sudo apt-get update
sudo apt-get install -y python3-pip
elif command -v yum &>/dev/null; then
sudo yum install -y python3-pip
elif command -v brew &>/dev/null; then
brew install python3
else
echo "Error: Could not install pip. Please install pip manually."
exit 1
fi
fi
# Install required Python packages
# Data Science
pip install pandas numpy scipy scikit-learn statsmodels
# Visualization
pip install matplotlib seaborn
# File Processing
pip install pyarrow openpyxl xlrd xlsxwriter pillow bs4
# Math & Computing
pip install sympy mpmath
# Utilities
pip install tqdm python-dateutil pytz joblib
echo "Python dependencies installed successfully."