Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/353.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 b"';包装配置';未被识别为内部或外部命令,\r\n可操作程序或批处理文件。\r\n;在pip上安装kivy时出错_Python_Pip_Kivy - Fatal编程技术网

Python b"';包装配置';未被识别为内部或外部命令,\r\n可操作程序或批处理文件。\r\n;在pip上安装kivy时出错

Python b"';包装配置';未被识别为内部或外部命令,\r\n可操作程序或批处理文件。\r\n;在pip上安装kivy时出错,python,pip,kivy,Python,Pip,Kivy,虽然python-m pip安装kivy我遇到了这个错误,我尝试升级setuptools和pip,但它仍然不起作用,我还安装了另一个库(ez_安装程序),它工作得很好,似乎只有kivy不起作用 C:\Users\Moin>python -m pip install kivy Collecting kivy Using cached Kivy-1.11.1.tar.gz (23.6 MB) ERROR: Command errored out with exit status 1:

虽然
python-m pip安装kivy
我遇到了这个错误,我尝试升级
setuptools
pip
,但它仍然不起作用,我还安装了另一个库(ez_安装程序),它工作得很好,似乎只有kivy不起作用

C:\Users\Moin>python -m pip install kivy
Collecting kivy
  Using cached Kivy-1.11.1.tar.gz (23.6 MB)
 ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-install-ou_q8ddc\\kivy\\setup.py'"'"'; __file__='"'"'C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-install-ou_q8ddc\\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\Moin\AppData\Local\Temp\pip-pip-egg-info-fzc_k7h3'
         cwd: C:\Users\Moin\AppData\Local\Temp\pip-install-ou_q8ddc\kivy\
    Complete output (83 lines):
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/cython/
    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: 'C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-wheel-ib66hoy1\\cython\\setup.py'"'"'; __file__='"'"'C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-wheel-ib66hoy1\\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\Moin\AppData\Local\Temp\pip-wheel-aemhq4rs'
           cwd: C:\Users\Moin\AppData\Local\Temp\pip-wheel-ib66hoy1\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 "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\installer.py", line 126, in fetch_build_egg
         subprocess.check_call(cmd)
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 364, in check_call
         raise CalledProcessError(retcode, cmd)
     subprocess.CalledProcessError: Command '['C:\\Users\\Moin\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Moin\\AppData\\Local\\Temp\\tmpra706wd8', '--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 "C:\Users\Moin\AppData\Local\Temp\pip-install-ou_q8ddc\kivy\setup.py", line 1073, in <module>
         setup(
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 152, in setup
         _install_setup_requires(attrs)
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 147, in _install_setup_requires
         dist.fetch_build_eggs(dist.setup_requires)
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 673, in fetch_build_eggs
         resolved_dists = pkg_resources.working_set.resolve(
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 764, in resolve
         dist = best[req.key] = env.best_match(
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1049, in best_match
         return self.obtain(req, installer)
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1061, in obtain
         return installer(requirement)
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 732, in fetch_build_egg
         return fetch_build_egg(self, req)
       File "C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\installer.py", line 128, in fetch_build_egg
         raise DistutilsError(str(e)) from e
     distutils.errors.DistutilsError: Command '['C:\\Users\\Moin\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', 'C:\\Users\\Moin\\AppData\\Local\\Temp\\tmpra706wd8', '--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.
C:\Users\Moin>python-mpip安装kivy
收集奇维
使用缓存的Kivy-1.11.1.tar.gz(23.6MB)
错误:命令出错,退出状态为1:
命令:“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\Python.exe'-C”import sys,setuptools,tokenize;sys.argv[0]=“C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-install-ou\u q8ddc\\kivy\\setup.py”“”__文件“''''C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-install-ou\u q8ddc\\kivy\\setup.py''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“鸡蛋信息——鸡蛋库”C:\Users\Moin\AppData\Local\Temp\pip-pip-egg-info-fzc\k7h3”
cwd:C:\Users\Moin\AppData\Local\Temp\pip-install-ou_q8ddc\kivy\
完整输出(83行):
警告:在“ReadTimeoutError”(“HTTPSConnectionPool(host='pypi.org',port=443):读取超时(read timeout=15)”):/simple/cython)断开连接后重试(重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None))/
警告:正在跳过页面https://github.com/kivy-garden/garden/archive/master.zip 因为HEAD请求得到了内容类型:application/zip。唯一支持的内容类型是text/html
错误:命令出错,退出状态为1:
命令:“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\Python.exe'-u-C'import sys,setuptools,tokenize;sys.argv[0]=“C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-wheel-ib66hoy1\\cython\\setup.py”“”__文件“''C:\\Users\\Moin\\AppData\\Local\\Temp\\pip-wheel-ib66hoy1\\cython\\setup.py''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)“bdist\u wheel-d'C:\Users\Moin\AppData\Local\Temp\pip-wheel-aemhq4rs”
cwd:C:\Users\Moin\AppData\Local\Temp\pip-wheel-ib66hoy1\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生成控制盘失败
错误:无法生成一个或多个控制盘
警告:车轮组件不可用。
回溯(最近一次呼叫最后一次):
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\setuptools\installer.py”,第126行,在fetch\u build\u egg中
子进程检查调用(cmd)
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py”,第364行,在check\u调用中
引发被调用的进程错误(retcode,cmd)
subprocess.CalledProcessError:命令'['C:\\Users\\Moin\\AppData\\Local\\Programs\\Python\\Python38-32\\Python.exe'、'-m'、'pip'、'-禁用pip版本检查'、'wheel'、'-无deps'、'-w'、'-C:\\Users\\Moin\\AppData\\Local\\Temp\\tmpra706wd8'、'-quiet'、'-查找链接'、'https://github.com/kivy-garden/garden/archive/master.zip“,”cython!=0.27,!=0.27.2,=0.24']'返回非零退出状态1。
上述异常是以下异常的直接原因:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\Moin\AppData\Local\Temp\pip-install-ou_q8ddc\kivy\setup.py”,第1073行,在
设置(
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\setuptools\\uuuu init\uuuuu.py”,第152行,在安装程序中
_安装\u安装\u需要(属性)
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\setuptools\\uuuuuuu init\uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
dist.fetch\u build\u鸡蛋(dist.setup\u需要)
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\setuptools\dist.py”,第673行,在fetch\u build\u中
resolved_dists=pkg_resources.working_set.resolve(
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\pkg\u resources\uuuuu init\uuuu.py”,第764行,解析
dist=best[req.key]=env.best\u匹配(
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\pkg\u resources\uuuuu init\uuuu.py”,第1049行,最佳匹配
返回自获取(请求,安装程序)
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\pkg\u resources\uuuuuu init\uuuuu.py”,第1061行,获取
返回安装程序(要求)
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\setuptools\dist.py”,第732行,在fetch\u build\u egg中
返回获取\构建\蛋(自身,需要)
文件“C:\Users\Moin\AppData\Local\Programs\Python\Python38-32\lib\site packages\setuptools\installer.py”,第128行,在fetch\u build\u egg中
将DistutilsError(str(e))从e中升起
distutils.errors.DistutilsError:命令'['C:\\Users\\Moin\\AppData\\Local\\Programs\\Python\\Python38-32\\Python.exe'、'-m'、'pip'、'-禁用pip版本检查'、'wheel'、'-无deps'、'-w'、'-C:\\Users\\Moin\\AppData\\Local\\Temp\\tmpra706wd8'、'-quiet'、'-查找链接'、'https://github.com/kivy-garden/garden/archive/master.zip“,”cython!=0.27,!=0.27.2,=0.24']'返回非零退出状态1。
使用设置工具
检测到用户分布,请避免使用便携命令。
使用这个图形系统:OpenGL
警告:运行pkg config--libs--cflags gstreamer-1.0(代码1)时出现问题