mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Improve installation command
https://github.com/alexbelgium/hassio-addons/issues/1798#issuecomment-2694630274
This commit is contained in:
@@ -10,10 +10,11 @@ if [[ "$(uname -m)" = "x86_64" ]]; then
|
|||||||
bashio::log.warning "Your cpu doesn't support avx2, the analyzer service will likely won't work"
|
bashio::log.warning "Your cpu doesn't support avx2, the analyzer service will likely won't work"
|
||||||
bashio::log.warning "Trying to install tensorflow instead of tflite_runtime instead"
|
bashio::log.warning "Trying to install tensorflow instead of tflite_runtime instead"
|
||||||
mkdir -p /home/pi/.cache/pip
|
mkdir -p /home/pi/.cache/pip
|
||||||
chown "0:0" /home/pi/.cache/pip
|
chmod 777 /home/pi/.cache/pip
|
||||||
$PYTHON_VIRTUAL_ENV /usr/bin/pip3 uninstall -y tflite_runtime
|
source BirdNET-Pi/birdnet/bin/activate
|
||||||
$PYTHON_VIRTUAL_ENV /usr/bin/pip3 install tensorflow
|
pip3 uninstall -y tflite_runtime
|
||||||
chown "$PUID:$PGID" /home/pi/.cache/pip
|
pip3 install tensorflow
|
||||||
|
deactivate
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user