安装Kivy时出现多个错误

3

错误:命令以 exit status 1 错误退出: 需要 Microsoft Visual C++ 14.0。请使用“Visual Studio Build 工具”获取此工具:https://visualstudio.microsoft.com/downloads/ ---------------------------------------- 错误:构建 cython 失败 错误:未能构建一个或多个 wheels。

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

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

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,\r\noperable program or batch file.\r\n"

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,\r\noperable program or batch file.\r\n"

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,请查看完整的命令输出日志。

我完美地按照所有步骤操作,尝试以管理员身份运行并使用虚拟环境运行。我完全不知所措。


你安装了Microsoft Visual C++ 14吗? - AMC
@AlexanderCécile 我按照那个链接下载了第一个选项,也就是vs code 2019,但我不知道它如何帮助下载,不过我还是试了一下,并将其放在与我的kivy虚拟环境文件夹相同的目录中,但仍然无法正常工作。 - user11043428
好嘛,难怪它没有工作,它要求版本14.0。无论如何,我认为这是一个重复的问题:https://dev59.com/uF0a5IYBdhLWcg3w48BP。 - AMC
这个回答解决了你的问题吗?需要Microsoft Visual C++ 14.0 (无法找到vcvarsall.bat) - AMC
1个回答

4
如果您前往Kivy下载页面,您将看到Kivy支持Python的版本是2.7和3.5到3.7,所以Kivy尚不支持Python 3.8。切换到3.7是唯一的选择。 pic

谢谢!我应该仔细看看,我的错。 - user11043428
我甚至没有意识到我的实际Python版本是3.8 :-/ - m3nda

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接