在尝试抛出documentation的所有步骤之后,我尝试在命令提示符下使用命令pip3 install kivy==1.11.1
安装Kivy。但是,这件事在我看来
ERROR: Command errored out with exit status 1:
command: 'c:\users\stem-luxor.desktop-uhafvv3\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\STEM-Luxor.DESKTOP-UHAFVV3\\AppData\\Local\\Temp\\pip-install-a93tln0n\\kivy\\setup.py'"'"'; __file__='"'"'C:\\Users\\STEM-Luxor.DESKTOP-UHAFVV3\\AppData\\Local\\Temp\\pip-install-a93tln0n\\kivy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\STEM-Luxor.DESKTOP-UHAFVV3\AppData\Local\Temp\pip-pip-egg-info-2mc5qys6'
cwd: C:\Users\STEM-Luxor.DESKTOP-UHAFVV3\AppData\Local\Temp\pip-install-a93tln0n\kivy\
Complete output (408 lines):
ERROR: Command errored out with exit status 1:
command: 'c:\users\stem-luxor.desktop-uhafvv3\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\STEM-Luxor.DESKTOP-UHAFVV3\\AppData\\Local\\Temp\\pip-wheel-ffmc6f_q\\cython\\setup.py'"'"'; __file__='"'"'C:\\Users\\STEM-Luxor.DESKTOP-UHAFVV3\\AppData\\Local\\Temp\\pip-wheel-ffmc6f_q\\cython\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\STEM-Luxor.DESKTOP-UHAFVV3\AppData\Local\Temp\pip-wheel-v8ey9hgh'
.
.
.
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
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
(由于我达到了字符数限制,所以我仍然无法显示部分错误,并且我不知道它的重要部分,因此我删除了不包含ERROR
的所有内容,但是其中有一些部分包含WARNING
)
我搜索了ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
,发现了一些对我不起作用的答案(或者因为我对python比较陌生,所以我还是不明白。)
答案 0 :(得分:1)
尝试键入:
python -m pip install kivy==
或键入以下内容:
pip3 install kivy==
然后按Enter键,而不是从一个版本中选择一个,即可满足您的需求...
我建议:今天的最新版本是2.0.0rc2或2.0.0rc3
答案 1 :(得分:1)
对于py 3.8
pip3 install --pre --extra-index-url https://kivy.org/downloads/simple kivy[base]
答案 2 :(得分:0)
pip install kivy [base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/
尝试将以上内容粘贴到命令提示符中。经过长期的努力,找到了解决方案。