close

[Solved] No module named utils

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error No module named utils in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How No module named utils Error Occurs?

Today I get the following error No module named utils in python.

How To Solve No module named utils Error ?

  1. How To Solve No module named utils Error ?

    To Solve No module named utils Error To be able to access the 'utils' module directly, you need to be running the script inside the <models-master>\research\object_detection folder.

  2. No module named utils

    To Solve No module named utils Error To be able to access the 'utils' module directly, you need to be running the script inside the <models-master>\research\object_detection folder.

Solution 1

What folder are you running your python script from?

To be able to access the ‘utils’ module directly, you need to be running the script inside the <models-master>\research\object_detection folder.

Solution 2

add object_detection to the front of utils:

# from utils import label_map_util
# from utils import visualization_utils as vis_util

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

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read