Import interpreter get error

Hi guys.
I want to import Interpreter by this code:
from tflite_runtime.interpreter import Interpreter
But I got this error:
ImportError: generic_type: type “InterpreterWrapper” is already registered!
I searched a lot but I didn’t find anything.
Could you help me?

1 Like


Welcome to the Tensorflow Forum!

Sorry for the delay in responding. Are you still looking for a solution?

Could you try uninstalling the tflite_runtime package and installing the latest version and let us know?

Thank you!