django-admin.py: command not found

2019-07-04 05:35发布

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

3条回答
Anthone
2楼-- · 2019-07-04 05:40

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楼-- · 2019-07-04 05:54

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

查看更多
男人必须洒脱
4楼-- · 2019-07-04 06:01

just type

django-admin startproject mysite
查看更多
登录 后发表回答