How to pip install from github….powershell gives error Cannot find command ‘git’?

Question:

I’m trying install psycopg2 into my virtualenv. I’ve tried pip I’ve tried easy_install nothing is working… installing from pip is the more desirable choice but it has to be done through nwcell’s github package https://github.com/nwcell/psycopg2-windows heres the command I’ve been using:

Answer:

As the docs say:

pip supports installing from Git, Mercurial, Subversion and Bazaar, and detects the type of VCS using url prefixes: “git+”, “hg+”, “bzr+”, “svn+”.

pip requires a working VCS command on your path: git, hg, svn, or bzr.

So, if you don’t have a working git command on your %PATH%, you can’t pip install git+<anything>. To fix it, install git, and make sure it ends up on your %PATH%.

Source:

How to pip install from github….powershell gives error Cannot find command ‘git’? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply