-bash: django-admin.py: command not found

前端之家收集整理的这篇文章主要介绍了-bash: django-admin.py: command not found前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

执行django-admin.py报错:

-bash: django-admin.py: command not found

原因:环境变量中找不到django-admin.py

解决办法:

软连接:ln -s /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/bin/django-admin.py /usr/local/bin

然后再执行django-admin.py,运行成功

猜你在找的Bash相关文章