当前目录下明明有model.tools却找不到!
2个要点缺一不可
1.model文件夹下需要__init__.py文件
2.sys.path.insert(0,project_path) project_path放在sys.path首位优先搜索,因为sys.path中有其他model文件夹,如果不是项目要求不要用model这种起名
- model ModuleNotFoundError 39 package pythonmodel modulenotfounderror 39 package common modulenotfounderror 39 package modulenotfounderror module named 39 modulenotfounderror packaging module named 39 modulenotfounderror蓝图attribute modulenotfounderror module models named package found 39 zlib 39 material flutter package package found 39 glib 39 bson get_object_size site-packages