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

前端 未结 7 1846
日久生厌
日久生厌 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 19:02

    My ten-penneth - If you're working with virtual environments (have a venv directory) make sure it is marked as excluded.

    Plagiarised from above:

    • In the Project view, right-click on the venv directory
    • In the dialog menu select Mark Directory As > Excluded

    The directory should turn orange...

    This sometimes happens if you've done a git clean or for whatever reason had to rebuild your environment and PyCharm hasn't noticed

    0 讨论(0)
提交回复
热议问题