Cannot find reference 'xxx' in __init__.py - Python / Pycharm

后端 未结 7 859
一整个雨季
一整个雨季 2020-12-01 01:09

I have a project in Pycharm organized as follows:

-- Sources
   |--__init__.py
   |--Calculators
      |--__init__.py
      |--Filters.py
   |--Controllers
         


        
7条回答
  •  不知归路
    2020-12-01 01:40

    I have solved this problem in my pycharm in a bit different way.

    Go to settings -> Project Interpreter and then click on the base package there.

    You will see a page like this

    After that when your package is installed then you should see the package is colored blue rather than white.

    And the unresolved reference is also gone too.

提交回复
热议问题