ImportError: Cannot import name X

前端 未结 16 1194
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 04:33

I have four different files named: main, vector, entity and physics. I will not post all the code, just the imports, because I think that\'s where the error is. (If you want

16条回答
  •  隐瞒了意图╮
    2020-11-22 04:55

    Also not directly relevant to the OP, but failing to restart a PyCharm Python console, after adding a new object to a module, is also a great way to get a very confusing ImportError: Cannot import name ...

    The confusing part is that PyCharm will autocomplete the import in the console, but the import then fails.

提交回复
热议问题