找不到命令'git' - windows

Moe*_*Moe 9 django pip django-mongodb-engine

我正在尝试使用我的python django应用程序安装mongodb_engine,但是我收到此错误

 Cannot find command 'git'
Run Code Online (Sandbox Code Playgroud)

我正在尝试从mongodb文档中获取此命令.http://django-mongodb-engine.readthedocs.org/en/latest/topics/setup.html

pip install git+https://github.com/django-nonrel/django@nonrel-1.5
Run Code Online (Sandbox Code Playgroud)

我相信这里的git导致问题,因为项目存储在git repo中.有没有办法安装git来运行这个pip命令?我试过多个来源,但无法让它工作.

Imr*_*ran 11

首先在windows中安装git.然后将其安装箱路径添加到Windows的环境路径中.然后,您将在命令提示符下全局找到git命令.这可以解决你的问题.


小智 6

如果您使用Anacoda,则可以尝试使用

conda install git
Run Code Online (Sandbox Code Playgroud)