Command not found: django-admin.py

前端 未结 27 1870
被撕碎了的回忆
被撕碎了的回忆 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:34

    if you install django by pip

    • ensure you have installed django:

    pip list or pip freeze

    if there is django then

    • get location of django:

    pip show django

    if location is '/Users/xxxxx/Library/Python/2.7/lib/python/site-packages' then

    • relocate django-admin-py to /usr/local/bin:

    ln -s /Users/xxxxx/Library/Python/2.7/lib/python/site-packages/django/bin/django-admin.py /usr/local/bin/django-admin.py

提交回复
热议问题