Django error

When I open a new django project, it crashes. "Non-zero exit code (2) There is no module named Django.

pip install Django doesn't work automaticly. It did yesterday, but not now!

Please help!

(already reinstalled Pycharm)

0
2 comments

 

 

Hello,

 

This is a known bug https://youtrack.jetbrains.com/issue/PY-45712 , the fix will be available this week in 2020.2.5. 

 

As a workaround, please: 

 

1. Close PyCharm

2. In the terminal run ``python -m pip install pip==20.2.4``

 

``python`` should be replaced with an absolute path to the python executable for a base interpreter which is defined on the step of Project Configuration. (see screenshot attached)

 

3. create a Django project

 

 

I apologize for the inconvenience. 

 

0
Avatar
Permanently deleted user

Thank you!!!

 

0

Please sign in to leave a comment.