Pycharm: “unresolved reference” error on the IDE when opening a working project

前端 未结 7 1848
日久生厌
日久生厌 2020-12-02 18:15

Intro

I have a Python project on a git repository. Everything works ok for most of the team members, we can sync the code and edit it without any pr

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 18:37

    PyCharm - Alt-F(ile); Settings; Project Structure; click +Add content root; point your folder containing the package in contention: /home/joker/anaconda3/envs/conda_py27/lib/python2.7/site-packages. I additionally marked as resources (not sure if this is mandatory). Click ok and the reindexing happens. This solved the problem for me in PyCharm Professional 2016.2.3

提交回复
热议问题