Home > Mobile >  Cann't install django with error 'Non-zero exit code (2)'
Cann't install django with error 'Non-zero exit code (2)'

Time:04-26

When i create new django project in pycharm i have error enter image description here

Help me please

CodePudding user response:

As you can see, PyCharm has given you a "proposed solution", so use that.

Basically, PyCharm is trying to add, or you have tried to add, a --build-dir argument to the pip command but pip doesn't know what --build-dir means.

Open your Terminal/Command Prompt, cd into your project directory and run pip install django.

CodePudding user response:

Open Pycharm settings and go to Interpreter settings File->Settings->Project->Project Interpreter and click the button on right side, then find django and install it.

  • Related