安装 Kivy 时出现多个错误 [英] Multiple Errors when installing Kivy

查看:20
本文介绍了安装 Kivy 时出现多个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:命令出错,退出状态为 1:错误:需要 Microsoft Visual C++ 14.0.使用Visual Studio 构建工具"获取它:https://visualstudio.microsoft.com/downloads/--------------------------------------错误:cython 构建轮子失败错误:无法构建一个或多个轮子

ERROR: Command errored out with exit status 1: error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/ ---------------------------------------- ERROR: Failed building wheel for cython ERROR: Failed to build one or more wheels

警告:运行 pkg-config --libs --cflags gstreamer-1.0(代码 1)时出现问题

WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

b"'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
"

WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

b"'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
"

WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

b"'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
"

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 检查日志以获取完整的命令输出.

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

我完美地遵循了所有步骤,我尝试以管理员身份运行并运行虚拟环境.我完全迷路了.

I followed all the step perfectly, I tried running as administrator and running a virtual environment. I'm completely lost.

推荐答案

如果你去 Kivy 下载页面你会看到支持的版本Kivy 的 Python 是 2.7 和 3.5 到 3.7,所以 Kivy 还不支持 Python 3.8.切换到 3.7 是唯一的选择.

If you go to Kivy downloads page you will see the supported versions of Python from Kivy is 2.7 and 3.5 to 3.7, so Kivy doesn't support Python 3.8 yet. Switching to 3.7 is the only option.

这篇关于安装 Kivy 时出现多个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆