Command not found: django-admin.py

前端 未结 27 1976
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 02:40

I am a complete beginner to Python/Django, but I want to dive right in and start experimenting. Thus I was following this guide on installing Python/Django http://devcenter.

27条回答
  •  情书的邮戳
    2020-12-03 03:22

    To windows users out there: I have faced this problem several times and here are the checkpoints:

    When there is problem initiating a new project, make sure:

    1) python is working in the command line (type in python and see if you get the console)

    2) specify the full path of django-admin.py in the command

    3) check django-admin.py is in the system path

    4) cd the command line path to where you want the new project

    Screenshot of what finally worked for me (only the last command): https://flic.kr/p/r9LJ67 (stackoverflow doesn't allow me to post pictures yet)

提交回复
热议问题