从github安装python库

时间:2014-11-22 12:46:52

标签: python github

您好我正在尝试从github安装此python库:

https://github.com/eskerda/PyBikes

但是当我输入时:

pip install git+git://github.com/eskerda/PyBikes.git

pip install git+https://github.com/eskerda/PyBikes.git

它返回:

Cannot find command 'git'

这是我第一次尝试从github安装库,所以也许我错过了一些明显的东西。

谢谢!

1 个答案:

答案 0 :(得分:0)

检查documentation

  

pip目前支持克隆 git git + https git + ssh

 Here are the supported forms:
 git+git://git.myproject.org/MyProject#egg=MyProject 
 git+https://git.myproject.org/MyProject#egg=MyProject
 git+ssh://git.myproject.org/MyProject#egg=MyProject
 git+git@git.myproject.org:MyProject#egg=MyProject