Pycharm error Django is not importable in this environment

前端 未结 17 1409
情话喂你
情话喂你 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:08

    In my case I had to go to Settings (Alt+F7, or the Spanner/Cog icon) and select a Python interpreter which has Django installed alongside it.

    If Django isn't already installed, you should be able to install it via the + (plus) icon (not shown below) once an interpreter has been selected.

提交回复
热议问题