Command not found: django-admin.py

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

    I'm running macOS and I'm using pyenv instead of virtualenv. I'm not sure if they behave similarly, but I was having the same problem in which django-admin.py was not found.

    After a while I've noticed that I had a warning after installing django: pyenv: cannot rehash: /Users/msvolenski/.pyenv/shims/.pyenv-shim exists

    Once I deleted this file and ran pyenv rehash it all started working perfectly.

    Hope this helps!

提交回复
热议问题