-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·30 lines (23 loc) · 926 Bytes
/
install.sh
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
#!/bin/bash
# Automatically exit script if an error appears
set -e
# Check if python is installed command
if ! command -v python3 &> /dev/null
then
echo "python3 required but could not be found. Aborting."
exit
fi
# Set up the virtual environment
echo "Setting up virtual environment..."
python3 -m venv glupredkit_venv
# Activate the virtual environment
echo "Activating the virtual environment..."
if [ "$(uname)" == "Darwin" ] || [ "$(uname)" == "Linux" ]; then
source glupredkit_venv/bin/activate
elif [ "$(uname -s)" == "MINGW32_NT" ] || [ "$(uname -s)" == "MINGW64_NT" ] || [ "$(uname -s)" == "MSYS_NT" ]; then
source glupredkit_venv/Scripts/activate
fi
# Install the required packages
echo "Installing dependencies..."
pip install -r requirements.txt
echo "Installation complete. Now, you're ready to use the Command Line Interface (CLI) for processing and predicting blood glucose levels."