django-admin.py: command not found

2019-07-04 05:15发布

问题:

I have django-admin.py in usr/local/bin and I have tried all the help given on the web to make a symbolic link but it still says django-admin.py: command not found.

I am trying to start of my first project in django :- django-admin.py startproject mysite.

No matter what I do I just keep on getting django-admin.py: command not found.

I am using ubuntu 11.10.

Thanks

回答1:

just type

django-admin startproject mysite


回答2:

I would recommend to remove it and install Django again.

Or use virtualenv http://www.mahdiyusuf.com/post/5282169518/beginners-guide-easy-install-pip-and-virtualenv-1



回答3:

i have the same Problem. the django-admin.py for me was in this Path ~/.local/bin. this because i run pip instal --user django