安装kivy时出现python setup.py egg_info错误

问题描述 投票:0回答:1

发现了一些重复的问题作为答案,尝试以管理员身份运行,升级了pip / setuptools /已安装的ez安装程序,但仍然没有安装!

      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
 Traceback (most recent call last):
   File "C:\Windows\System32\kivy_venv\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
     subprocess.check_call(cmd)
   File "C:\Users\ASUS\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 364, in check_call
     raise CalledProcessError(retcode, cmd)
 subprocess.CalledProcessError: Command '['C:\\Windows\\System32\\kivy_venv\\Scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\ASUS\\AppData\\Local\\Temp\\tmp8tff8vsx', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.

 During handling of the above exception, another exception occurred:

 Traceback (most recent call last):
   File "<string>", line 1, in <module>
   File "C:\Users\ASUS\AppData\Local\Temp\pip-install-utdk21go\kivy\setup.py", line 1073, in <module>
     setup(
   File "C:\Windows\System32\kivy_venv\lib\site-packages\setuptools\__init__.py", line 160, in setup
     _install_setup_requires(attrs)
   File "C:\Windows\System32\kivy_venv\lib\site-packages\setuptools\__init__.py", line 155, in _install_setup_requires
     dist.fetch_build_eggs(dist.setup_requires)
   File "C:\Windows\System32\kivy_venv\lib\site-packages\setuptools\dist.py", line 695, in fetch_build_eggs
     resolved_dists = pkg_resources.working_set.resolve(
   File "C:\Windows\System32\kivy_venv\lib\site-packages\pkg_resources\__init__.py", line 781, in resolve
     dist = best[req.key] = env.best_match(
   File "C:\Windows\System32\kivy_venv\lib\site-packages\pkg_resources\__init__.py", line 1066, in best_match
     return self.obtain(req, installer)
   File "C:\Windows\System32\kivy_venv\lib\site-packages\pkg_resources\__init__.py", line 1078, in obtain
     return installer(requirement)
   File "C:\Windows\System32\kivy_venv\lib\site-packages\setuptools\dist.py", line 754, in fetch_build_egg
     return fetch_build_egg(self, req)
   File "C:\Windows\System32\kivy_venv\lib\site-packages\setuptools\installer.py", line 130, in fetch_build_egg
     raise DistutilsError(str(e))
 distutils.errors.DistutilsError: Command '['C:\\Windows\\System32\\kivy_venv\\Scripts\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\ASUS\\AppData\\Local\\Temp\\tmp8tff8vsx', '--quiet', '--find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cython!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 1.
Using setuptools
User distribution detected, avoid portable command.
Using this graphics system: OpenGL
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 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
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

错误:命令错误,退出状态为1:python setup.py egg_info检查日志以获取完整的命令输出。有什么我想念的吗?感谢您的帮助(win10)pro,我希望缺少一个程序,因为最近购买了这台电脑

python kivy install
1个回答
0
投票

已安装https://visualstudio.microsoft.com/visual-cpp-build-tools/还有另一个错误使用pip install kivy[base] kivy_examples --pre --extra-index-url https://kivy.org/downloads/simple/代替kivy.org中的内容并成功安装!

© www.soinside.com 2019 - 2024. All rights reserved.