python – 如何从github pip安装… powershell给出错误找不到命令’git’?

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

pip install git+https://github.com/nwcell/psycopg2-windows.git@win64-py34#egg=psycopg2

最佳答案 正如
the docs所说:

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.

所以,如果你的%PATH%没有工作git命令,你就不能pip install git< anything>.要解决它,install git,并确保它以%PATH%结束.

点赞