【问题标题】:I tried to install kivy for python 3.8.1 on windows 10 and I have this error [duplicate]我尝试在 Windows 10 上为 python 3.8.1 安装 kivy,但出现此错误 [重复]
【发布时间】:2020-04-28 15:30:09
【问题描述】:

我尝试在 Windows 10 上为 python 3.8.1 安装 kivy,但出现此错误。

ERROR: Dependency for context.pyx not resolved: config.pxi
ERROR: Dependency for compiler.pyx not resolved: config.pxi
ERROR: Dependency for context_instructions.pyx not resolved: config.pxi
ERROR: Dependency for fbo.pyx not resolved: config.pxi
ERROR: Dependency for gl_instructions.pyx not resolved: config.pxi
ERROR: Dependency for instructions.pyx not resolved: config.pxi
ERROR: Dependency for opengl.pyx not resolved: config.pxi
ERROR: Dependency for opengl_utils.pyx not resolved: config.pxi
ERROR: Dependency for shader.pyx not resolved: config.pxi
ERROR: Dependency for stencil_instructions.pyx not resolved: config.pxi
ERROR: Dependency for scissor_instructions.pyx not resolved: config.pxi
ERROR: Dependency for texture.pyx not resolved: config.pxi
ERROR: Dependency for vbo.pyx not resolved: config.pxi
ERROR: Dependency for vertex.pyx not resolved: config.pxi
ERROR: Dependency for vertex_instructions.pyx not resolved: config.pxi
ERROR: Dependency for cgl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_mock.pyx not resolved: config.pxi
ERROR: Dependency for cgl_gl.pyx not resolved: config.pxi
ERROR: Dependency for cgl_glew.pyx not resolved: config.pxi
ERROR: Dependency for cgl_sdl2.pyx not resolved: config.pxi
ERROR: Dependency for svg.pyx not resolved: config.pxi
----------------------------------------

错误:命令出错,退出状态为 1:python setup.py egg_info 检查日志以获取完整的命令输出。

【问题讨论】:

  • Python 3.8 是非常新的版本,某些模块可能无法与 3.8 一起使用 - 最好使用 Python 3.7
  • 我在使用 Python 3.8.2 的 Ubuntu 上遇到了同样的问题

标签: python kivy


【解决方案1】:

对不起,我也经历了这些悲伤的时刻,直到我跑了以下几行。

python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew --extra-index-url` https://kivy.org/downloads/packages/simple

pip install kivy[base] kivy_examples --pre --extra-index-url` https://kivy.org/downloads/simple/

【讨论】:

    【解决方案2】:

    你应该尝试在 python 3.7 中安装它,Kivy 可能没有按照 3.8 更新。或者您可以按照在 How to deal with Kivy installing error in Python 3.8?

    祝你好运!

    【讨论】:

    【解决方案3】:

    这在 Kivy 项目的 Github 问题上得到解决: https://github.com/kivy/kivy/issues/6563

    来自 KiaraKarla 的 Tipp: kiarakarla 于 2019 年 12 月 15 日发表评论 我们不太可能为 pypi 发布 3.8 的 1.11.1 版本。但是,您可以使用 pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/ 安装 kivy master。

    帮助我让 kivy 在 Win10 下使用 Python 3.8.2 使用示例

    【讨论】:

      【解决方案4】:

      按照这些步骤一一安装库

      对于python3.8

      pip install --upgrade pip setuptools wheel
      
      pip install https://github.com/kivy/kivy/archive/master.zip
      
      pip install kivy.deps.glew
      
      pip install docutils pygments pypiwin32 kivy.deps.sdl2
      
      

      【讨论】:

        【解决方案5】:

        Kivy 刚刚发布了 Kivy 2.0。据release detail称,Kivy现在支持Python 3.6 - 3.9,不再支持Python 2.x版本。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2021-01-13
          • 2019-03-23
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-10-20
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多