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

时间:2020-01-11 01:20:12

标签: python kivy

我尝试在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检查日志以获取完整的命令输出。

5 个答案:

答案 0 :(得分:3)

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

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/

答案 1 :(得分:2)

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

祝你好运!

答案 2 :(得分:2)

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

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

为我工作,使自己在使用Python 3.8.2的Win10下工作于示例上

答案 3 :(得分:0)

按照这些步骤一个接一个地安装库

对于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

答案 4 :(得分:0)

Kivy刚刚发布了Kivy 2.0。根据{{​​3}}的说法,Kivy现在支持Python 3.6-3.9,并且不再支持Python 2.x版本。

相关问题
最新问题