I encountered the following error while trying to run a Python script and import TensorFlow Lite 2.10.0 runtime's interpreter, i.e., tflite_runtime.interpreter
.
python -c "from tflite_runtime.interpreter import Interpreter; print(Interpreter)"
# ImportError: /lib64/libm.so.6: version `GLIBC_2.27' not found
# (required by /var/lang/lib/python3.8/site-packages/tflite_runtime/_pywrap_tensorflow_interpreter_wrapper.so)
As of October 25, 2022, tflite-runtime
versions 2.8.0, 2.9.1, and 2.10.0 return the same error.
The issue was solved by downgrading to tflite-runtime
version 2.7.0.
python -c "from tflite_runtime.interpreter import Interpreter; print(Interpreter)"
# <class 'tflite_runtime.interpreter.Interpreter'>
I haven't found a way to make tflite-runtime
2.10.0 work.
If you do, please let me know!