tflite_runtime get Illegal instruction on raspberry pi


after installing tflite_runtime on raspberry pi using the following commands

echo "deb coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl | sudo apt-key add -
sudo apt-get update
sudo apt-get install python3-tflite-runtime

and trying to import tflite .. I got "Illegal instruction"

Error screenshot


The prebuilt tflite_runtime package set from the above site does not cover armv6 architecture yet.

Alternatively, you can choose some other options.

(1) Install the TensorFlow pip package.

TensorFlow Lite features are a part of TensorFlow package and the prebuilt TensorFlow pip packages support armv6. See

(2) Build your own tflite_runtime through Bazel or CMake.

If there is a need for installing the tflite_runtime only, it is possible to build the tflite_runtime by yourself. The following document describes the differences between Bazel and CMake and how to build the tflite_runtime through them.

Answered By – Jae sung Chung

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published