Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在manjaro linux中从pip安装kivy时出错_Python_Pip_Kivy_Manjaro - Fatal编程技术网

Python 在manjaro linux中从pip安装kivy时出错

Python 在manjaro linux中从pip安装kivy时出错,python,pip,kivy,manjaro,Python,Pip,Kivy,Manjaro,我是初学者 在Manjaro Linux中安装python kivy时出错 我使用pip安装kivy命令。 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

我是初学者

在Manjaro Linux中安装python kivy时出错

我使用
pip安装kivy
命令。 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nzmdo5o9/kivy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nzmdo5o9/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 /tmp/pip-pip-egg-info-1qssr8o1            
         cwd: /tmp/pip-install-nzmdo5o9/kivy/                                      
    Complete output (78 lines):                                                    
    fatal: not a git repository (or any parent up to mount point /)                
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).     
    WARNING: Skipping page https://github.com/kivy-garden/garden/archive/master.zip because the HEAD request got Content-Type: application/zip.The only supported Content-Type is text/html                                                              
      ERROR: Command errored out with exit status 1:                               
       command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-td6si1r9/cython/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-td6si1r9/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 /tmp/pip-wheel-ipue10p2                   
           cwd: /tmp/pip-wheel-td6si1r9/cython/                                    
      Complete output (7 lines):                                                   
      Unable to find pgen, not compiling formal grammar.                           
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]        
         or: setup.py --help [cmd1 cmd2 ...]                                       
         or: setup.py --help-commands                                              
         or: 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 "/usr/lib/python3.8/site-packages/setuptools/installer.py", line 126, in fetch_build_egg                                                                  
         subprocess.check_call(cmd)                                                
       File "/usr/lib/python3.8/subprocess.py", line 364, in check_call            
         raise CalledProcessError(retcode, cmd)                                    
     subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpi9byfgla', '--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.             
                                                                                   
     The above exception was the direct cause of the following exception:          
                                                                                   
     Traceback (most recent call last):                                            
       File "<string>", line 1, in <module>                                        
       File "/tmp/pip-install-nzmdo5o9/kivy/setup.py", line 1073, in <module>      
         setup(                                                                    
       File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 152, in setup                                                                             
         _install_setup_requires(attrs)                                            
       File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires                                                           
         dist.fetch_build_eggs(dist.setup_requires)                                
       File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 673, in fetch_build_eggs                                                                      
         resolved_dists = pkg_resources.working_set.resolve(                       
       File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 764, in resolve                                                                        
         dist = best[req.key] = env.best_match(                                    
       File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1049, in best_match                                                                    
         return self.obtain(req, installer)                                        
       File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1061, in obtain                                                                        
         return installer(requirement)                                             
       File "/usr/lib/python3.8/site-packages/setuptools/dist.py", line 732, in fetch_build_egg                                                                       
         return fetch_build_egg(self, req)                                         
       File "/usr/lib/python3.8/site-packages/setuptools/installer.py", line 128, in fetch_build_egg                                                                  
         raise DistutilsError(str(e)) from e                                       
     distutils.errors.DistutilsError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpi9byfgla', '--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                                                               
    Using this graphics system: OpenGL                                             
    GStreamer found via pkg-config                                                 
    WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)                                                 
                                                                                   
    b"Package SDL2_ttf was not found in the pkg-config search path.\nPerhaps you should add the directory containing `SDL2_ttf.pc'\nto the PKG_CONFIG_PATH environment variable\nPackage 'SDL2_ttf', required by 'virtual:world', not found\nPackage 'SDL2_image', required by 'virtual:world', not found\nPackage 'SDL2_mixer', required by 'virtual:world', not found\n"                                                     
                                                                                   
    Pango: pangoft2 found via pkg-config                                           
    {'libraries': ['pangoft2-1.0', 'pango-1.0', 'gobject-2.0', 'glib-2.0', 'harfbuzz', 'fontconfig', 'freetype'], 'include_dirs': ['/tmp/pip-install-nzmdo5o9/kivy/kivy/include', '/usr/include/pango-1.0', '/usr/include/glib-2.0', '/usr/lib/glib-2.0/include', '/usr/include/harfbuzz', '/usr/include/freetype2', '/usr/include/libpng16', '/usr/include/libmount', '/usr/include/blkid', '/usr/include/fribidi', '/usr/include/cairo', '/usr/include/pixman-1'], 'library_dirs': [], 'extra_link_args': [], 'extra_compile_args': [], 'depends': ['lib/pango/pangoft2.pxi', 'lib/pango/pangoft2.h']}                                                                                
    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:
命令:/usr/bin/python-c'import sys、setuptools、tokenize;sys.argv[0]=“”/tmp/pip-install-nzmdo5o9/kivy/setup.py“”__文件uu=“”/tmp/pip-install-nzmdo5o9/kivy/setup.py“”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“鸡蛋信息——鸡蛋库/tmp/pip-pip-egg-info-1qssr8o1
cwd:/tmp/pip-install-nzmdo5o9/kivy/
完整输出(78行):
致命:不是git存储库(或装载点/之前的任何父存储库)
在文件系统边界处停止(未设置跨文件系统的GIT_发现)。
警告:正在跳过页面https://github.com/kivy-garden/garden/archive/master.zip 因为HEAD请求得到了内容类型:application/zip。唯一支持的内容类型是text/html
错误:命令出错,退出状态为1:
命令:/usr/bin/python-u-c'import sys、setuptools、tokenize;sys.argv[0]=“tmp/pip-wheel-td6si1r9/cython/setup.py”“”__文件''''/tmp/pip-wheel-td6si1r9/cython/setup.py''';f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“文件”“exec”))“bdist”wheel-d/tmp/pip-wheel-ipue10p2
cwd:/tmp/pip-wheel-td6si1r9/cython/
完整输出(7行):
找不到pgen,未编译正式语法。
用法:setup.py[global\u opts]cmd1[cmd1\u opts][cmd2[cmd2\u opts]…]
或:setup.py--帮助[cmd1 cmd2…]
或:setup.py--帮助命令
或者:setup.py cmd--帮助
错误:无效命令“bdist\u wheel”
----------------------------------------                                     
错误:为cython生成控制盘失败
错误:无法生成一个或多个控制盘
警告:车轮组件不可用。
回溯(最近一次呼叫最后一次):
文件“/usr/lib/python3.8/site packages/setuptools/installer.py”,第126行,在fetch\u build\u egg中
子进程检查调用(cmd)
文件“/usr/lib/python3.8/subprocess.py”,第364行,在check\u调用中
引发被调用的进程错误(retcode,cmd)
subprocess.CalledProcessError:命令'['/usr/bin/python','-m',pip','-禁用pip版本检查,'-wheel','-no-deps','-w','/tmp/tmpi9byfgla','-安静','-查找链接','https://github.com/kivy-garden/garden/archive/master.zip“,”cython!=0.27,!=0.27.2,=0.24']”返回非零退出状态1。
上述异常是以下异常的直接原因:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-install-nzmdo5o9/kivy/setup.py”,第1073行,在
设置(
文件“/usr/lib/python3.8/site packages/setuptools/_init__.py”,第152行,在安装程序中
_安装\u安装\u需要(属性)
文件“/usr/lib/python3.8/site packages/setuptools/_init__.py”,第147行,在安装程序中
dist.fetch\u build\u鸡蛋(dist.setup\u需要)
文件“/usr/lib/python3.8/site packages/setuptools/dist.py”,第673行,在fetch\u build\u中
resolved_dists=pkg_resources.working_set.resolved(
文件“/usr/lib/python3.8/site packages/pkg_resources/_init__.py”,第764行,解析
dist=最佳[请求键]=环境最佳匹配(
文件“/usr/lib/python3.8/site packages/pkg_resources/_init__.py”,第1049行,最佳匹配
返回自获取(请求,安装程序)
文件“/usr/lib/python3.8/site packages/pkg_resources/_init__.py”,第1061行,获取