-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
46 lines (39 loc) · 1.29 KB
/
Copy pathsetup.sh
File metadata and controls
46 lines (39 loc) · 1.29 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Setup script for Chicago Data Analysis project
echo "============================================================"
echo "Chicago Data Analysis - Setup Script"
echo "============================================================"
echo ""
# Check if Python 3 is installed
if ! command -v python3 &> /dev/null; then
echo "❌ Python 3 is not installed. Please install Python 3.7 or higher."
exit 1
fi
echo "✓ Python 3 found: $(python3 --version)"
echo ""
# Create virtual environment if it doesn't exist
if [ ! -d "venv" ]; then
echo "→ Creating virtual environment..."
python3 -m venv venv
echo "✓ Virtual environment created"
else
echo "✓ Virtual environment already exists"
fi
echo ""
echo "→ Activating virtual environment..."
source venv/bin/activate
echo "→ Installing dependencies..."
pip install --upgrade pip > /dev/null 2>&1
pip install -r requirements.txt > /dev/null 2>&1
echo "✓ Dependencies installed successfully"
echo ""
echo "============================================================"
echo "Setup complete!"
echo "============================================================"
echo ""
echo "To run the analysis, use:"
echo " python chicago_data_analysis.py"
echo ""
echo "To deactivate the virtual environment later, use:"
echo " deactivate"
echo ""