首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在CentOs上安装pygit2时出错

在CentOs上安装pygit2时出错
EN

Stack Overflow用户
提问于 2017-05-09 10:20:26
回答 1查看 722关注 0票数 1

我正试图在Centos上安装pygit2,如果有人能告诉我可能出了什么问题,我将非常感激

谢谢

代码语言:javascript
复制
You are using pip version 7.1.0, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pygit2
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached pygit2-0.25.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-uSxy32/pygit2/setup.py", line 60, in <module>
        from _run import ffi, preamble, C_KEYWORDS
      File "pygit2/_run.py", line 72, in <module>
        ffi.cdef(C_HEADER_SRC)
      File "/usr/lib64/python2.6/site-packages/cffi/api.py", line 97, in cdef
        self._parser.parse(csource, override=override)
      File "/usr/lib64/python2.6/site-packages/cffi/cparser.py", line 154, in parse
        self._internal_parse(csource)
      File "/usr/lib64/python2.6/site-packages/cffi/cparser.py", line 159, in _internal_parse
        ast, macros = self._parse(csource)
      File "/usr/lib64/python2.6/site-packages/cffi/cparser.py", line 126, in _parse
        self.convert_pycparser_error(e, csource)
      File "/usr/lib64/python2.6/site-packages/cffi/cparser.py", line 148, in convert_pycparser_error
        raise api.CDefError(msg)
    cffi.api.CDefError: cannot parse "typedef int64_t git_time_t;"
    :640: Multiple type specifiers with a type tag

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-uSxy32/pygit2
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-09 10:37:12

看一看https://github.com/libgit2/pygit2/issues/470,您似乎需要首先运行:

代码语言:javascript
复制
pip install --upgrade pip

pip upgrade pycparser
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43867185

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档