PyCharm cannot find the packages in virtualenv

前端 未结 9 883
感情败类
感情败类 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条回答
  •  猫巷女王i
    2020-12-28 13:22

    I noticed that every time I open a different project it still has the venv from the project I was previously working on.

    What I do is:

    ctrl-alt-s (to go into preferences), then Project Interpreter/settings (gear icon), show all, then remove all the venv environments that aren't your current project (use the - sign). Restart, and you should be good to go.

提交回复
热议问题