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

标签 python powershell pip virtualenv psycopg2

我正在尝试将 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/

相关文章:

python - 如何使用 Visual Studio Code 单步执行依赖项代码?

python - lxml:如何丢弃所有包含特定类链接的 <li> 元素?

c# - 性能:System.Diagnostics.Process 与 System.Management.Automation.PowerShell

python-3.x - 无法为 Python 3 安装 pyOpenSSL

python - MSYS2:安装后 pip 不在路径中(找不到命令)

python - 在组织内部分发我的 python 模块

python - 使用csv从mysql数据库导出数据

python - 在mysql数据库的单个单元格中插入python字典

c# - 这是从 C# 使用 PowerShell 打印 'Hello World' 的最简单方法吗?

powershell - ItemNotFoundException 从当前目录之外的文件的管道中调用 Remove-Item