[英]trying to install django and python using GIT-BASH on win7
我正在尝试首次安装django,并尝试通过http://net.tutsplus.com/tutorials/python-tutorials/python-from-scratch-creating-a-dynamic-website/工作。
我已经下载了Django-1.4.3。 这是我的Git-Bash目录
$ ls
Django-1.4.3 ReleaseNotes.rtf doc git-cheetah libexec
Git Bash.vbs bin etc git-cmd.bat share
README.portable cmd git-bash.bat lib ssl
根据我必须执行的教程:
cd Django-1.4.3
python setup.py install
当我做后者时,我得到:
$ python setup.py install
sh.exe": python: command not found
我需要在哪里放置python才能执行此命令?
假设已经安装了Python,则此错误消息表示Git-Bash不知道您的python.exe在哪里。
要像您建议的那样从Git-Bash运行python命令,必须在Windows的PATH
环境变量中附加python.exe的PATH
。
在Windows上运行python的其他方法是使用完整路径使用常规命令提示符(而不是Git-Bash)。 例如,如果python的安装目录是C:\\Python27
:
cd Django-1.4.3
C:\Python27\python.exe setup.py install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.