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

后端 未结 7 829
一整个雨季
一整个雨季 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:33

    I know this is old, but Google sent me here so I guess others will come too like me.

    The answer on 2018 is the selected one here: Pycharm: "unresolved reference" error on the IDE when opening a working project

    Just be aware that you can only add one Content Root but you can add several Source Folders. No need to touch __init__.py files.

提交回复
热议问题