How to pip install from github....powershell gives error Cannot find command 'git'?

30,373

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%.

Share:
30,373
Groovietunes
Author by

Groovietunes

Updated on April 30, 2020

Comments

  • Groovietunes
    Groovietunes about 4 years

    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:

    pip install git+https://github.com/nwcell/psycopg2-windows.git@win64-py34#egg=psycopg2
    
  • aljgom
    aljgom over 7 years
    If you're running from the command line, you might have to restart it after modifying your PATH for it to recognize it