首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Beeware‘公文包创建’要求开罗>= 1.15.10

Beeware‘公文包创建’要求开罗>= 1.15.10
EN

Stack Overflow用户
提问于 2020-11-08 15:20:39
回答 2查看 1.4K关注 0票数 2

我遵循Beeware教程,无法‘公文包创建’。

在某种程度上,它表明:

代码语言:javascript
复制
Collecting pygobject>=3.14.0
  Downloading PyGObject-3.38.0.tar.gz (712 kB)
     |████████████████████████████████| 712 kB 6.9 MB/s 
  Installing build dependencies ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.8 /usr/local/lib/python3.8/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-6esqaemw/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
       cwd: None
  Complete output (36 lines):
  WARNING: The directory '/home/brutus/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  Collecting setuptools
    Downloading setuptools-50.3.2-py3-none-any.whl (785 kB)
  Collecting wheel
    Downloading wheel-0.35.1-py2.py3-none-any.whl (33 kB)
  Collecting pycairo
    Downloading pycairo-1.20.0.tar.gz (344 kB)
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
      Preparing wheel metadata: started
      Preparing wheel metadata: finished with status 'done'
  Building wheels for collected packages: pycairo
    Building wheel for pycairo (PEP 517): started
    Building wheel for pycairo (PEP 517): finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.8 /usr/local/lib/python3.8/dist-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmp426eh9du
         cwd: /tmp/pip-install-rmj9v5en/pycairo
    Complete output (12 lines):
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.8
    creating build/lib.linux-x86_64-3.8/cairo
    copying cairo/__init__.py -> build/lib.linux-x86_64-3.8/cairo
    copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.8/cairo
    copying cairo/py.typed -> build/lib.linux-x86_64-3.8/cairo
    running build_ext
    Requested 'cairo >= 1.15.10' but version of cairo is 1.14.6
    Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
    ----------------------------------------
    ERROR: Failed building wheel for pycairo
  Failed to build pycairo
  ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3.8 /usr/local/lib/python3.8/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-6esqaemw/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
Unable to install dependencies. This may be because one of your dependencies is invalid, or because pip was unable to connect to the PyPI server. 

我认为主要的问题是

代码语言:javascript
复制
 Requested 'cairo >= 1.15.10' but version of cairo is 1.14.6

但我不明白的是,如果我只安装了cairo 1.20.0,那么是cairo 1.14.6。

我试图更新docker,重新安装cairo和pycairo,更新python包,但是错误仍然存在。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-11-28 12:29:32

beeware构建过程正在尝试安装pycairo包。这个包只是开罗图形库(libcairo2)的python接口。

皮卡伊罗变化率g展示了pycairo的最新版本1.20.0,它需要cairo (libcairo2)版本1.15.10+。

如果幸运的话,您可以简单地将cairo包更新为满足要求的版本。信息在官方网站CairoGraphics.org/下载上。

我和你有同样的问题。在我的例子中,我再次被提醒将我的操作系统升级到更新的Ubuntu版本,因为cairo包libcairo2只在Ubuntu16.04LTS官方PPA的14.6版本中提供。在Ubuntu20.04LTS中,可用的libcairo2为16.0。我怀疑您有一个simmilar操作系统,因为您安装的cairo版本与我的相同。

票数 3
EN

Stack Overflow用户

发布于 2020-12-05 17:07:03

您可以从来源构建包以绕过错误:

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

https://stackoverflow.com/questions/64739729

复制
相关文章

相似问题

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