Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 978
Groovietunes Avatar asked Apr 30 '15 01:04

Groovietunes


People also ask

How do I fix git not found?

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

Can pip install from github?

git/ folder inside a software development project. You can deploy Git locally, or use it via a hosted service, such as Github, Gitlab or Bitbucket. One of the advantages of using pip together with Git is to install the latest commits of unreleased Python packages as branches from Github.

Does pip use Git?

Pip has since optimized its Git install mechanism, so that is normally faster now. Tarball URL's may still be useful in niche situations though, for example if you need to install on a system without Git installed.


1 Answers

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

like image 126
abarnert Avatar answered Oct 02 '22 02:10

abarnert