【发布时间】:2020-06-16 03:24:24
【问题描述】:
每次我尝试在我的 MAC-OS 上安装 kivy 时都会收到此错误。
错误:命令出错,退出状态为 1: 命令:/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-install-hw1k89ak/kivy/setup.py'"'"'; 文件='"'"'/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-install-hw1k89ak/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 /private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-pip-egg-info-n2hhez9l cwd:/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-install-hw1k89ak/kivy/ 完整输出(91 行): 致命:不是 git 存储库(或任何父目录):.git 错误:命令出错,退出状态为 1: 命令:/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys,setuptools,tokenize; sys.argv[0] = '"'"'/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-wheel-za11bzp2/cython/setup.py'"'"'; 文件='"'"'/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-wheel-za11bzp2/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 /private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-wheel-jqs2qwkh cwd:/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-wheel-za11bzp2/cython/ 完整输出(7 行): 找不到pgen,不编译形式语法。 用法:setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] 或: setup.py --help [cmd1 cmd2 ...] 或: setup.py --help-commands 或者:setup.py cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
ERROR: Failed building wheel for cython
ERROR: Failed to build one or more wheels
WARNING: The wheel package is not available.
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg
subprocess.check_call(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/tmp69rb6fr7', '--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 "/private/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/pip-install-hw1k89ak/kivy/setup.py", line 1073, in <module>
setup(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 160, in setup
_install_setup_requires(attrs)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 155, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 695, in fetch_build_eggs
resolved_dists = pkg_resources.working_set.resolve(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 781, in resolve
dist = best[req.key] = env.best_match(
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1066, in best_match
return self.obtain(req, installer)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1078, in obtain
return installer(requirement)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py", line 754, in fetch_build_egg
return fetch_build_egg(self, req)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/installer.py", line 130, in fetch_build_egg
raise DistutilsError(str(e))
distutils.errors.DistutilsError: Command '['/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/var/folders/y9/jt_3161d5wq2gntpvh9hq62c0000gp/T/tmp69rb6fr7', '--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 ES 2
OSX framework used, force to x86_64 only
OSX ARCHFLAGS are: -arch x86_64
GStreamer framework not found, fallback on pkg-config
WARNING: A problem occurred while running pkg-config --libs --cflags gstreamer-1.0 (code 127)
b'/bin/sh: pkg-config: command not found\n'
Missing framework /Library/Frameworks/SDL2.framework
Missing framework /Library/Frameworks/SDL2_ttf.framework
Missing framework /Library/Frameworks/SDL2_image.framework
Missing framework /Library/Frameworks/SDL2_mixer.framework
SDL2 frameworks not found, fallback on pkg-config
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 127)
b'/bin/sh: pkg-config: command not found\n'
Xcode detected at b'/Library/Developer/CommandLineTools', and using OS X10.11 sdk
WARNING: A problem occurred while running pkg-config --libs --cflags pangoft2 (code 127)
b'/bin/sh: pkg-config: command not found\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 检查日志以获取完整的命令输出。
如果有人帮助我解决此错误并帮助我解决此问题,我将不胜感激。谢谢。
【问题讨论】:
标签: kivy