找不到命令'git'-Windows [英] Cannot find command 'git' - windows

查看:674
本文介绍了找不到命令'git'-Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to install mongodb_engine with my python django application, however I am getting this error

 Cannot find command 'git'

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

I am trying this command from mongodb documentation. http://django-mongodb-engine.readthedocs.org/en/latest/topics/setup.html

pip install git+https://github.com/django-nonrel/django@nonrel-1.5

我相信这里的git引起了问题,因为该项目存储在git repo中.有没有一种安装git来运行此pip命令的方法?我尝试了多种来源,但无法正常工作.

I believe git here is causing the problem since the project is stored in git repo. Is there a way to install git to run this pip command? I tried multiple sources but wasn't able to get it to work.

推荐答案

从此处下载并在Windows中安装git:

Download and Install git in your windows from here:

https://git-scm.com/download/win

然后将其安装bin路径添加到Windows的环境路径中.然后,您将在命令提示符全局找到git命令.

Then add its installation bin path to your windows's environment path. Then you will find the git command at the command prompt globally.

这可能会解决您的问题.

This may solve you problem.

这篇关于找不到命令'git'-Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆