我正在尝试将 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.
所以,如果您没有可用的 git
命令你的 %PATH%
, 你不能 pip install git+<anything>
.要修复它,install git
,并确保它最终出现在你的 %PATH%
上.
关于python - 如何从 github pip 安装....powershell 给出错误找不到命令 'git'?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29957484/