ubuntu 安装pygit2
条评论参考:http://www.pygit2.org/install.html
依赖包:
Python 2.7, 3.2+ or PyPy 2.6+ (including the development headers)
Libgit2 v0.25.x
cffi 1.0+
six
tox (optional)
安装依赖包:
1 | sudo apt-get install libssh2-1-dev |
安装:
1 | wget https://github.com/libgit2/libgit2/archive/v0.25.0.tar.gz |
cmake .的时候会告诉你缺啥啥,缺啥装啥。