ggirishg commited on
Commit
f3e6d6e
·
verified ·
1 Parent(s): 9816966

Update setup.sh

Browse files
Files changed (1) hide show
  1. setup.sh +23 -1
setup.sh CHANGED
@@ -1 +1,23 @@
1
- pip freeze > requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Update and install required system packages
4
+ echo "Updating system and installing dependencies..."
5
+ sudo apt-get update
6
+ sudo apt-get install -y python3-pip python3-venv libgl1
7
+
8
+ # Create and activate a virtual environment
9
+ echo "Creating a virtual environment..."
10
+ python3 -m venv venv
11
+ source venv/bin/activate
12
+
13
+ # Upgrade pip
14
+ echo "Upgrading pip..."
15
+ pip install --upgrade pip
16
+
17
+ # Install dependencies
18
+ echo "Installing Python dependencies..."
19
+ pip install -r requirements.txt
20
+
21
+ # Notify completion
22
+ echo "Setup is complete. To activate the virtual environment, run:"
23
+ echo "source venv/bin/activate"