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.
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.
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.
Open the command prompt "terminal" and type git version to verify Git was installed.
If your using Anacoda, then you can try this
conda install git
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With