Pycharm error Django is not importable in this environment

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

    As everybody said ,Check for your interpreter Was it properly configured it or not.If you created your project in virtual environment ,make sure you configured the correct python interpreter or not .The python interpreter(whole) and python interpreter(for only single project using virtualenv) are different .

    If you are using PyCharm Go to Setting->Project->project interpreter and pick the right interpreter Once you are done with that ,run the project if it runs,all set .if not check for the Edit configurations and check again for the interpreter

提交回复
热议问题