Ask questionsModuleNotFoundError: No module named 'tflite_runtime'
I am working a x86 Laptop and have installed tensorflow using https://www.tensorflow.org/lite/guide/python Following is the list of tflite installed
ankit@HP:~$ pip3 list | grep tflite tflite 1.15.0 tflite-runtime 1.14.0
my aim is to get a Google coral example running from this link https://coral.ai/docs/accelerator/get-started/#3-run-a-model-using-the-tensorflow-lite-api
When I execute the command for inference I get the folllowing error
Traceback (most recent call last): File "classify_image.py", line 36, in <module> import tflite_runtime.interpreter as tflite ModuleNotFoundError: No module named 'tflite_runtime'
Is there anything else that I need to install. I already have installed the libedgetpu1-std.
Answer questions aselle
Ah, it makes sense from your commands what happened when you run with sudo pip install you install in /usr/local/lbi
conda create --name myenv conda activate myenv pip install tensorflow (or whatever)
The point is that you need to activate the conda environment. Then you don't need "sudo pip"