-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup_env.sh
More file actions
executable file
·34 lines (28 loc) · 829 Bytes
/
setup_env.sh
File metadata and controls
executable file
·34 lines (28 loc) · 829 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
#!/bin/bash
# Machine Learning Specialization 2025 - Environment Setup Script
echo "🚀 Setting up Machine Learning environment..."
# Check if virtual environment exists
if [ ! -d "ml_env" ]; then
echo "Creating virtual environment..."
python3 -m venv ml_env
fi
# Activate virtual environment
echo "Activating virtual environment..."
source ml_env/bin/activate
# Install packages if requirements.txt exists
if [ -f "requirements.txt" ]; then
echo "Installing required packages..."
pip install -r requirements.txt
fi
echo "✅ Environment ready!"
echo ""
echo "To start Jupyter Notebook:"
echo " source ml_env/bin/activate"
echo " jupyter notebook"
echo ""
echo "To start Jupyter Lab:"
echo " source ml_env/bin/activate"
echo " jupyter lab"
echo ""
echo "To deactivate environment:"
echo " deactivate"