Pycharm error Django is not importable in this environment

前端 未结 17 1175
情话喂你
情话喂你 2021-02-01 13:00

I\'m getting the following errors in Pycharm.

Error: Django is not importable in this environment

It used to work well but I moved t

17条回答
  •  太阳男子
    2021-02-01 13:16

    I kept getting this error even after following suggestions made in other answers, like deleting .idea folder, reinstalling packages from settings->project interpreter.

    Finally, I took the venv out of the project folder and created a venev beside the project folder and deleted .idea folder from project folder.

    Then I opened the project and chose the interpreter as the newly created venv

提交回复
热议问题