安装pygit2时出错

2024-05-18 18:57:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我必须在我的ubuntu机器上安装pygit2库。当我尝试“pip install pygit2”时,出现以下错误。在

在cffi.ffiplatform.VerificationError:CompileError:命令“x86_64-linux-gnu-gcc”失败,退出状态为1


正在清理。。。 命令python设置.pyegg_info失败,/tmp/pip_build_root/pygit2中的错误代码为1 将失败的调试日志存储在/root/.pip中/圆木在

在此之前,我做了下面的工作,一切顺利(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了。在

^{pr2}$

Tags: installpip命令机器makeubuntu错误libgit2

热门问题