- Enable Swap Space on your Raspberry Pi 3 Model B+
- Install and Configure Python and PIP on your Raspberry Pi 3 Model B+
- Install and Configure Python Virtual Environment on your Raspberry Pi 3 Model B+
Install a few libraries to help with the OpenCV and TensorFlow Lite backend and GUI processing:
pi@raspberry:~ $ sudo apt -y install qt4-dev-tools libatlas-base-dev libhdf5-103
pi@raspberry:~ $ mkdir -p Projects/Python/tensorflow-env
pi@raspberry:~ $ cd Projects/Python/tensorflow-env
pi@raspberry:~ $ python -m venv tensorflow-env
pi@raspberry:~ $ source tensorflow-env/bin/activate
(tensorflow-env) pi@raspberry:~ $
(tensorflow-env) pi@raspberry:~ $ python3 -m pip install tflite-runtime
(tensorflow-env) pi@raspberry:~ $ python
>>> import tensorflow
>>> tensorflow.__version__
'X.X.X'
>>>
Ctrl+D
(tensorflow-env) pi@raspberry:~ $ sudo pip uninstall tensorboard
(tensorflow-env) pi@raspberry:~ $ sudo pip uninstall tensorflow
(tensorflow-env) pi@raspberry:~ $ sudo pip uninstall tflite-runtime