From 6b0c60484215552c7de4bded9efc8984060abe1d Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Wed, 10 Nov 2021 09:49:18 -0500 Subject: [PATCH] Installs on Bullseye now --- scripts/install_birdnet.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/install_birdnet.sh b/scripts/install_birdnet.sh index d4624d6..6d00d4d 100755 --- a/scripts/install_birdnet.sh +++ b/scripts/install_birdnet.sh @@ -52,21 +52,22 @@ install_birdnet() { source ./birdnet/bin/activate echo "Upgrading pip, wheel, and setuptools" pip3 install --upgrade pip wheel setuptools - - python_version="$(awk -F. '{print $2}' <(ls -l $(which python3)))" +set -x + python_version="$(awk -F. '{print $2}' <(ls -l $(which /usr/bin/python3)))" + echo "python_version=${python_version}" # TFLite Pre-built binaires from https://github.com/PINTO0309/TensorflowLite-bin # Python 3.7 - if [ "$python_version" -eq 7 ];then + if [[ "$python_version" == 7 ]];then echo "Installing the TFLite bin wheel" pip3 install --upgrade tflite_runtime-2.6.0-cp37-none-linux_aarch64.whl fi # Python 3.9 - if [ "$python_version" -eq 9 ];then + if [[ "$python_version" == 9 ]];then echo "Installing the TFLite bin wheel" pip3 install --upgrade tflite_runtime-2.6.0-cp39-none-linux_aarch64.whl fi - +set +x echo "Installing colorama==0.4.4" pip3 install colorama==0.4.4 echo "Installing librosa"