File size: 391 Bytes
63ab978
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

if [ ! -d "venv" ]; then
    echo "Creating virtual environment..."
    python -m venv venv
fi

source venv/bin/activate
pip install -r requirements.txt

if [ $? -ne 0 ]; then
    echo ""
    echo "Requirements installation failed. please remove venv folder and run install.sh again."
    deactivate
    exit 1
fi

echo ""
echo "Requirements installed successfully."

deactivate