[英]Error while installing pygit2
我必须在ubuntu机器上安装pygit2库。 当我尝试“ pip install pygit2”时,出现以下错误。
cffi.ffiplatform.VerificationError:CompileError:命令'x86_64-linux-gnu-gcc'失败,退出状态为1
清理...命令python setup.py egg_info在/ tmp / pip_build_root / pygit2中失败,错误代码为1,将调试日志存储在/root/.pip/pip.log中失败
在此之前,我做了以下很好的尝试( http://www.pygit2.org/install.html#quick-install )。
$ wget https://github.com/libgit2/libgit2/archive/v0.22.0.tar.gz
$ tar xzf v0.22.0.tar.gz
$ cd libgit2-0.22.0/
$ cmake .
$ make
$ sudo make install
我的机器上已经有libffi6了。
sudo apt-get install libffi6 libffi-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libffi-dev is already the newest version.
libffi6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
看来您需要安装pygit2依赖的libffi及其开发软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.