PyCharm cannot find the packages in virtualenv

前端 未结 9 870
感情败类
感情败类 2020-12-28 12:40

I have the latest PyCharm CE and am using it with virtualenv. I have defined the interpreter as the interpreter in the virtualenv. The Project Inte

9条回答
  •  长发绾君心
    2020-12-28 13:31

    For me, the easiest solution was to open the project in the root directory (my project has a server and client directories, thus the root directory contained both of them). When you open the project in the root directory, it is able to find the dependencies without messing with pycharm settings as it uses them by convention.

提交回复
热议问题