-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
27 lines (23 loc) · 883 Bytes
/
start.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
#!/bin/bash
#apt-get install python3-venv
echo "Checking Python version..."
if command -v python3.6 &>/dev/null; then
echo "Found Python 3"
python3.6 -m venv ./venv
if [ $? -eq 0 ]; then
echo OK
source venv/bin/activate
pip install --upgrade pip
pip install ipykernel --use-feature=2020-resolver
pip install numba==0.43.0 --use-feature=2020-resolver
pip install llvmlite==0.32.1 --use-feature=2020-resolver
pip install -r /content/automatic-drum-transcription/requirements.txt --use-feature=2020-resolver
python3.6 /content/automatic-drum-transcription/src/start.py --folder=$1
else
echo "Could not execute python -m venv ./venv"
echo "Edit the script. Change the 'python' command to the one calling python3."
fi
else
echo "Python 3 is not installed."
echo "Aborting"
fi