Pycharm error Django is not importable in this environment

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

    Yet another case, where my virtualenv did have Django installed, but Pycharm would still display this error.

    I eventually found out that the same virtualenv path had been duplicated in the list of available interpreters. Removing all of them and re-adding fixed it.

    The duplication happened after I copied the .idea from another machine, and re-created the virtualenv from Pycharm although it was already listed as a (broken) interpreter.

提交回复
热议问题