ModuleNotFoundError

!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’)

tf.get_logger().setLevel(‘ERROR’)

from absl import logging

logging.set_verbosity(logging.ERROR)

for above code below error is showing


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 6>()
4 import os
5
----> 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.

@Sandeep_Bhadkamkar,

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

Solution:

1 Like