[英]django-admin.py: command not found
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. 我在usr / local / bin中有django-admin.py,我已尝试在网上给出的所有帮助,以建立一个符号链接,但它仍然说django-admin.py:command not found。
I am trying to start of my first project in django :- django-admin.py startproject mysite. 我正试图在django开始我的第一个项目: - django-admin.py startproject mysite。
No matter what I do I just keep on getting django-admin.py: command not found. 无论我做什么,我只是继续得到django-admin.py:命令未找到。
I am using ubuntu 11.10. 我正在使用ubuntu 11.10。
Thanks 谢谢
只需键入
django-admin startproject mysite
I would recommend to remove it and install Django again. 我建议删除它并再次安装Django。
Or use virtualenv http://www.mahdiyusuf.com/post/5282169518/beginners-guide-easy-install-pip-and-virtualenv-1 或者使用virtualenv http://www.mahdiyusuf.com/post/5282169518/beginners-guide-easy-install-pip-and-virtualenv-1
i have the same Problem. 我也有同样的问题。 the
django-admin.py
for me was in this Path ~/.local/bin
. 我的
django-admin.py
就在这个Path ~/.local/bin
。 this because i run pip instal --user django
这是因为我运行
pip instal --user django
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.