加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

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

发布时间:2020-12-20 11:42:40 所属栏目:Python 来源:网络整理
导读:我正在尝试将psycopg2安装到我的virtualenv中.我试过pip我试过easy_install没有什么工作……从pip安装是更理想的选择,但它必须通过nwcell的 github包完成 https://github.com/nwcell/psycopg2-windows继承我一直使用的命令: pip install git+https://github
我正在尝试将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%结束.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读