Found a program on CNN:
https://www.cnblogs.com/further-further-further/p/10430073.html
Bug:
ModuleNotFoundError: No module named 'data_utils'
Found a related content, says the environment variable is not right:
https://www.cnblogs.com/fanqian0330/p/11095300.html
Same contents:
The right syntax of referencing function :
from . import dealcode
If quote a class in dealcode.py file in the same catalog, which is ‘Hello’,then add in the last line of code in admin.py:from .dealcode import Hello
What we do?
print(sys.path),confirm environment variables;
Change two file names to suit for the name in ‘start.py’;
Copy the whole floder into another floder;
Done

Summary:
1.Filename consistency;
2.Try in another floder;
3.Make sure the environment variables are correct
本文详细解析了在Python环境中遇到的'module not found'错误,提供了检查环境变量、确保文件名一致性及尝试在不同目录下运行等解决方案。适用于正在解决Python模块引用问题的开发者。
395

被折叠的 条评论
为什么被折叠?



