Pycharm error Django is not importable in this environment

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

    Ok, in my case the solution was:

    1. Install django
    2. Use @cbueche suggestion to remove the ~
    3. Switch to a another project's venv and switch back to my venv for this project

    I exited and reloaded the project a few times in there so that might also be necessary. I love PyCharm but starting a new project is always painful.

提交回复
热议问题