已有183人关注
安装kivy报错,怎么解决,我已经升级了:python -m pip install --upgrade pip python -m pip install --upgrade setuptools
发表在Python图书答疑 2020-06-11 悬赏:1 学分 《Python+Kivy(App 开发)从入门到实践》第1章 Hello Kivy 4页-4页
是否精华
版块置顶:

Microsoft Windows [版本 6.1.7601]

版权所有 (c) 2009 Microsoft Corporation。保留所有权利。


C:\Users\Administrator>python -m pip install kivy==1.11.1

Collecting kivy==1.11.1

  Using cached Kivy-1.11.1.tar.gz (23.6 MB)

    ERROR: Command errored out with exit status 1:

     command: 'D:\Python\Python38\python.exe' -c 'import sys, setuptools, tokeni

ze; sys.argv[0] = '"'"'C:\\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\p

ip-install-tk84vysw\\kivy\\setup.py'"'"'; __file__='"'"'C:\\Users\\Public\\Docum

ents\\Wondershare\\CreatorTemp\\pip-install-tk84vysw\\kivy\\setup.py'"'"';f=geta

ttr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'

"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_i

nfo --egg-base 'C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-pip-egg-in

fo-kd8ch4nd'

         cwd: C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-install-tk84

vysw\kivy\

    Complete output (122 lines):

   

         return self.obtain(req, installer)

       File "D:\Python\Python38\lib\site-packages\pkg_resources\__init__.py", li

ne 1078, in obtain

         return installer(requirement)

       File "D:\Python\Python38\lib\site-packages\setuptools\dist.py", line 754,

 in fetch_build_egg

         return fetch_build_egg(self, req)

       File "D:\Python\Python38\lib\site-packages\setuptools\installer.py", line

 130, in fetch_build_egg

         raise DistutilsError(str(e))

     distutils.errors.DistutilsError: Command '['D:\\Python\\Python38\\python.ex

e', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\

\Users\\Public\\Documents\\Wondershare\\CreatorTemp\\tmpxit7iugl', '--quiet', '-

-find-links', 'https://github.com/kivy-garden/garden/archive/master.zip', 'cytho

n!=0.27,!=0.27.2,<=0.29.10,>=0.24']' returned non-zero exit status 2.

    Using setuptools

    User distribution detected, avoid portable command.

    Using this graphics system: OpenGL

    WARNING: A problem occurred while running pkg-config --libs --cflags gstream

er-1.0 (code 1)


    b"'pkg-config' \xb2\xbb\xca\xc7\xc4\xda\xb2\xbf\xbb\xf2\xcd\xe2\xb2\xbf\xc3\

xfc\xc1\xee\xa3\xac\xd2\xb2\xb2\xbb\xca\xc7\xbf\xc9\xd4\xcb\xd0\xd0\xb5\xc4\xb3\

xcc\xd0\xf2\r\n\xbb\xf2\xc5\xfa\xb4\xa6\xc0\xed\xce\xc4\xbc\xfe\xa1\xa3\r\n"


    WARNING: A problem occurred while running pkg-config --libs --cflags gstream

er-1.0 (code 1)


    b"'pkg-config' \xb2\xbb\xca\xc7\xc4\xda\xb2\xbf\xbb\xf2\xcd\xe2\xb2\xbf\xc3\

xfc\xc1\xee\xa3\xac\xd2\xb2\xb2\xbb\xca\xc7\xbf\xc9\xd4\xcb\xd0\xd0\xb5\xc4\xb3\

xcc\xd0\xf2\r\n\xbb\xf2\xc5\xfa\xb4\xa6\xc0\xed\xce\xc4\xbc\xfe\xa1\xa3\r\n"


    WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SD

L2_ttf SDL2_image SDL2_mixer (code 1)


    b"'pkg-config' \xb2\xbb\xca\xc7\xc4\xda\xb2\xbf\xbb\xf2\xcd\xe2\xb2\xbf\xc3\

xfc\xc1\xee\xa3\xac\xd2\xb2\xb2\xbb\xca\xc7\xbf\xc9\xd4\xcb\xd0\xd0\xb5\xc4\xb3\

xcc\xd0\xf2\r\n\xbb\xf2\xc5\xfa\xb4\xa6\xc0\xed\xce\xc4\xbc\xfe\xa1\xa3\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 th

e logs for full command output.

中间的错误代码我删除了一写。我用的python3.8版本


分享到:
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照