Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find command 'git' - windows

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

Cannot find command 'git'

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/[email protected]

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.

like image 439
ETS Avatar asked Apr 10 '15 15:04

ETS


People also ask

How do I fix Git command not found?

Download and Install Git making sure Use Git from the Windows Command Prompt is selected when prompted. At the end, reopen the Command Prompt. The git command should now be recognized as expected. In some cases, a computer restart may be needed.

How do I find my Git path in cmd?

2 Answers. Git executable can be found by using running git --exec-path, which usually lives in the Git execution path. git --exec-path will give you the path.

How do I know if Git is installed cmd?

Open the command prompt "terminal" and type git version to verify Git was installed.


2 Answers

If your using Anacoda, then you can try this

conda install git
like image 154
Naveen Nair Avatar answered Oct 15 '22 14:10

Naveen Nair


Download and Install git in your windows from here:

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

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.

How to change environment variables : Git: Installing Git in PATH with GitHub client for Windows

For Visual studio code restart after adding the environment variables

like image 28
Imran Avatar answered Oct 15 '22 13:10

Imran