如何从github pip安装.... powershell给出错误找不到命令'git'?

Gro*_*nes 4 python powershell pip psycopg2 virtualenv

我正在尝试将psycopg2安装到我的virtualenv中.我试过pip我试过easy_install没有什么工作......从pip安装是更理想的选择,但它必须通过nwcell的github包来完成https://github.com/nwcell/psycopg2-windows heres the command我一直在用:

pip install git+https://github.com/nwcell/psycopg2-windows.git@win64-py34#egg=psycopg2
Run Code Online (Sandbox Code Playgroud)

aba*_*ert 7

正如文档所说:

pip支持从Git,Mercurial,Subversion和Bazaar安装,并使用url前缀检测VCS的类型:"git +","hg +","bzr +","svn +".

pip需要在您的路径上运行VCS命令:git,hg,svn或bzr.

所以,如果你没有工作git命令%PATH%,你就不能pip install git+<anything>.要修复它,请安装git并确保它最终在您的身上%PATH%.