Hello. I'm asking you a question because an error suddenly occurred in the module import.
from utils.utils import *
If you import the module as shown in
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm Professional Edition with Anaconda plugin 2020.1.3\plugins\python\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'utils.utils'
An error occurs as shown in .
It worked well until the morning, and I didn't touch the environment, but an error suddenly occurred.
If you check the module installed at the Anaconda prompt, utils is installed. I can't import. How do we solve this?
python
import sys
print(sys.path)
Check as above to make sure that the directory is set correctly.
© 2024 OneMinuteCode. All rights reserved.