module has no attribute

后端 未结 4 872
忘了有多久
忘了有多久 2020-11-30 05:41

I have a directory with a number of .py files in it. each file defines some classes. I also have an empty __init__.py in the directory.

Fo

4条回答
  •  隐瞒了意图╮
    2020-11-30 06:10

    If you are an idiot, like me, then also check whether you didn't name your python file the same as the module you are trying to import.

提交回复
热议问题