PyCharm cannot find the packages in virtualenv

前端 未结 9 873
感情败类
感情败类 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:23

    Open up Preferences -> Project -> Project Interpreter, do you see the module there?

    If yes, you might have another file somewhere in your project have the same name as flask.ext.login, this prevents pycharm from locating the actual module.

    If no, you can click on the ... beside your interpreter and select more..., select your interpreter and at the bottom (beside the filter), click the Show paths for the selected interpreter, you can add the path of your module there.

提交回复
热议问题