!pip install tflite-model-maker

import numpy as np

import os

from tflite_model_maker.config import ExportFormat

from tflite_model_maker import model_spec

from tflite_model_maker import object_detector

import tensorflow as tf

assert tf.version.startswith(‘2’)


from absl import logging


for above code below error is showing

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 6>()
4 import os
----> 6 from tflite_model_maker.config import ExportFormat
7 from tflite_model_maker import model_spec
8 from tflite_model_maker import object_detector

ModuleNotFoundError: No module named ‘tflite_model_maker’

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
“Open Examples” button below.


Welcome to the Tensorflow Forum!

This is the known issue with tflite-model-maker in Python 3.10.

Please track this thread for the updates

Thank you!

I have Python 3.9 installed on my machine and still I can’t get it to work, any suggestion would be much appreciated. Thank you


1 Like