close

[Fixed] ModuleNotFoundError: No module named ‘utils’

Today We are Going To Solve ModuleNotFoundError: No module named ‘utils’ in Python. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix ModuleNotFoundError: No module named ‘utils’ Error?

  1. How to Fix ModuleNotFoundError: No module named ‘utils’ Error?

    To Fix ModuleNotFoundError: No module named ‘utils’ Error just Run script inside the folder. Here to solve the error you have o just run the script inside the <models-master>\research\object_detection folder. and your error will be solved. Try this.

  2. ModuleNotFoundError: No module named ‘utils’

    To Fix ModuleNotFoundError: No module named ‘utils’ Error just Import label_map_util. To solve the error import the below two in your code and your error will be solved. from object_detection.utils import label_map_util from object_detection.utils import visualization_utils as vis_util

Solution 1 : Run script inside the folder

Here to solve the error you have o just run the script inside the <models-master>\research\object_detection folder. and your error will be solved. Try this.

Solution 2 : Import label_map_util

To solve the error import the below two in your code and your error will be solved.

from object_detection.utils import label_map_util
from object_detection.utils import visualization_utils as vis_util

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read This Solutions

Leave a Comment