自己检查了很多遍,自己写的每错,但是还是报没有找到对应python模块。目录结构如下图所示:

__init__.py这个文件需要引入models下的todo_kanban.py文件。__init__内容如下:

写法没问题,但是报错没找到对应模块,经过查找官方文档,需要在被引入(import)的目录下创建一个__init__.py文件,即使
该文件为空也没关系。

以上这篇python引用(import)某个模块提示没找到对应模块的解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。