鱼C论坛

 找回密码
 立即注册
查看: 986|回复: 2

请大侠帮助----老是报错无法安装kivy

[复制链接]
发表于 2020-6-1 16:33:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
想安装kivy学习一下如何开发app,可是老是报错(在C:和D:都试过了),无法安装,各位老师帮助一下,感谢!


Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\kgfs>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: 'd:\xuepy\python.exe' -c 'import sys, setuptools, tokenize; sys.ar
gv[0] = '"'"'C:\\Users\\kgfs\\AppData\\Local\\Temp\\pip-install-r33k72yw\\kivy\\
setup.py'"'"'; __file__='"'"'C:\\Users\\kgfs\\AppData\\Local\\Temp\\pip-install-
r33k72yw\\kivy\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__
);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(cod
e, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\kgfs\AppData\Local\
Temp\pip-pip-egg-info-uxpxqlg0'
         cwd: C:\Users\kgfs\AppData\Local\Temp\pip-install-r33k72yw\kivy\
    Complete output (193 lines):
    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 3221225595)

    WARNING: A problem occurred while running pkg-config --libs --cflags gstream
er-1.0 (code 3221225595)

    WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SD
L2_ttf SDL2_image SDL2_mixer (code 3221225595)

    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
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Plex\Scanners.py because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Plex\Actions.py because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Compiler\Scanning.py because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Compiler\Visitor.py because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Compiler\FlowControl.py because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Runtime\refnanny.pyx because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Compiler\FusedNode.py because it changed.
    Compiling C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29
.10\Cython\Tempita\_tempita.py because it changed.
    [1/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Compiler\FlowControl.py
    [2/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Compiler\FusedNode.py
    [3/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Compiler\Scanning.py
    [4/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Compiler\Visitor.py
    [5/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Plex\Actions.py
    [6/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Plex\Scanners.py
    [7/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Runtime\refnanny.pyx
    [8/8] Cythonizing C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cyt
hon-0.29.10\Cython\Tempita\_tempita.py
     Unable to find pgen, not compiling formal grammar.
     warning: no files found matching 'Doc\*'
     warning: no files found matching '*.pyx' under directory 'Cython\Debugger\T
ests'
     warning: no files found matching '*.pxd' under directory 'Cython\Debugger\T
ests'
     warning: no files found matching '*.pxd' under directory 'Cython\Utility'
     warning: no files found matching 'pyximport\README'
     Traceback (most recent call last):
       File "d:\xuepy\lib\site-packages\setuptools\msvc.py", line 489, in _find_
latest_available_vc_ver
         return self.find_available_vc_vers()[-1]
     IndexError: list index out of range

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "d:\xuepy\lib\distutils\core.py", line 148, in setup
         dist.run_commands()
       File "d:\xuepy\lib\distutils\dist.py", line 966, in run_commands
         self.run_command(cmd)
       File "d:\xuepy\lib\distutils\dist.py", line 985, in run_command
         cmd_obj.run()
       File "d:\xuepy\lib\site-packages\setuptools\command\bdist_egg.py", line 1
72, in run
         cmd = self.call_command('install_lib', warn_dir=0)
       File "d:\xuepy\lib\site-packages\setuptools\command\bdist_egg.py", line 1
58, in call_command
         self.run_command(cmdname)
       File "d:\xuepy\lib\distutils\cmd.py", line 313, in run_command
         self.distribution.run_command(command)
       File "d:\xuepy\lib\distutils\dist.py", line 985, in run_command
         cmd_obj.run()
       File "d:\xuepy\lib\site-packages\setuptools\command\install_lib.py", line
11, in run
         self.build()
       File "d:\xuepy\lib\distutils\command\install_lib.py", line 107, in build
         self.run_command('build_ext')
       File "d:\xuepy\lib\distutils\cmd.py", line 313, in run_command
         self.distribution.run_command(command)
       File "d:\xuepy\lib\distutils\dist.py", line 985, in run_command
         cmd_obj.run()
       File "d:\xuepy\lib\site-packages\setuptools\command\build_ext.py", line 8
4, in run
         _build_ext.run(self)
       File "d:\xuepy\lib\distutils\command\build_ext.py", line 340, in run
         self.build_extensions()
       File "d:\xuepy\lib\distutils\command\build_ext.py", line 449, in build_ex
tensions
         self._build_extensions_serial()
       File "d:\xuepy\lib\distutils\command\build_ext.py", line 474, in _build_e
xtensions_serial
         self.build_extension(ext)
       File "d:\xuepy\lib\site-packages\setuptools\command\build_ext.py", line 2
05, in build_extension
         _build_ext.build_extension(self, ext)
       File "d:\xuepy\lib\distutils\command\build_ext.py", line 528, in build_ex
tension
         objects = self.compiler.compile(sources,
       File "d:\xuepy\lib\distutils\_msvccompiler.py", line 327, in compile
         self.initialize()
       File "d:\xuepy\lib\distutils\_msvccompiler.py", line 224, in initialize
         vc_env = _get_vc_env(plat_spec)
       File "d:\xuepy\lib\site-packages\setuptools\msvc.py", line 185, in msvc14
_get_vc_env
         return EnvironmentInfo(plat_spec, vc_min_ver=14.0).return_env()
       File "d:\xuepy\lib\site-packages\setuptools\msvc.py", line 843, in __init
__
         self.si = SystemInfo(self.ri, vc_ver)
       File "d:\xuepy\lib\site-packages\setuptools\msvc.py", line 485, in __init
__
         self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
       File "d:\xuepy\lib\site-packages\setuptools\msvc.py", line 492, in _find_
latest_available_vc_ver
         raise distutils.errors.DistutilsPlatformError(err)
     distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is requi
red. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.micros
oft.com/downloads/

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 154, in sav
e_modules
         yield saved
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 195, in set
up_context
         yield
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 250, in run
_setup
         _execfile(setup_script, ns)
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 45, in _exe
cfile
         exec(code, globals, locals)
       File "C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29.
10\setup.py", line 228, in <module>
         This version of Cython is untested with Kivy. While this version may
       File "d:\xuepy\lib\site-packages\setuptools\__init__.py", line 145, in se
tup
         return distutils.core.setup(**attrs)
       File "d:\xuepy\lib\distutils\core.py", line 163, in setup
         raise SystemExit("error: " + str(msg))
     SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Micr
osoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "d:\xuepy\lib\site-packages\setuptools\command\easy_install.py", lin
e 1144, in run_setup
         run_setup(setup_script, args)
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 253, in run
_setup
         raise
       File "d:\xuepy\lib\contextlib.py", line 131, in __exit__
         self.gen.throw(type, value, traceback)
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 195, in set
up_context
         yield
       File "d:\xuepy\lib\contextlib.py", line 131, in __exit__
         self.gen.throw(type, value, traceback)
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 166, in sav
e_modules
         saved_exc.resume()
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 141, in res
ume
         six.reraise(type, exc, self._tb)
       File "d:\xuepy\lib\site-packages\setuptools\_vendor\six.py", line 685, in
reraise
         raise value.with_traceback(tb)
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 154, in sav
e_modules
         yield saved
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 195, in set
up_context
         yield
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 250, in run
_setup
         _execfile(setup_script, ns)
       File "d:\xuepy\lib\site-packages\setuptools\sandbox.py", line 45, in _exe
cfile
         exec(code, globals, locals)
       File "C:\Users\kgfs\AppData\Local\Temp\easy_install-6zz_itt9\Cython-0.29.
10\setup.py", line 228, in <module>
         This version of Cython is untested with Kivy. While this version may
       File "d:\xuepy\lib\site-packages\setuptools\__init__.py", line 145, in se
tup
         return distutils.core.setup(**attrs)
       File "d:\xuepy\lib\distutils\core.py", line 163, in setup
         raise SystemExit("error: " + str(msg))
     SystemExit: error: Microsoft Visual C++ 14.0 is required. Get it with "Micr
osoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "<string>", line 1, in <module>
       File "C:\Users\kgfs\AppData\Local\Temp\pip-install-r33k72yw\kivy\setup.py
", line 1073, in <module>
         setup(
       File "d:\xuepy\lib\site-packages\setuptools\__init__.py", line 144, in se
tup
         _install_setup_requires(attrs)
       File "d:\xuepy\lib\site-packages\setuptools\__init__.py", line 139, in _i
nstall_setup_requires
         dist.fetch_build_eggs(dist.setup_requires)
       File "d:\xuepy\lib\site-packages\setuptools\dist.py", line 716, in fetch_
build_eggs
         resolved_dists = pkg_resources.working_set.resolve(
       File "d:\xuepy\lib\site-packages\pkg_resources\__init__.py", line 780, in
resolve
         dist = best[req.key] = env.best_match(
       File "d:\xuepy\lib\site-packages\pkg_resources\__init__.py", line 1065, i
n best_match
         return self.obtain(req, installer)
       File "d:\xuepy\lib\site-packages\pkg_resources\__init__.py", line 1077, i
n obtain
         return installer(requirement)
       File "d:\xuepy\lib\site-packages\setuptools\dist.py", line 786, in fetch_
build_egg
         return cmd.easy_install(req)
       File "d:\xuepy\lib\site-packages\setuptools\command\easy_install.py", lin
e 679, in easy_install
         return self.install_item(spec, dist.location, tmpdir, deps)
       File "d:\xuepy\lib\site-packages\setuptools\command\easy_install.py", lin
e 705, in install_item
         dists = self.install_eggs(spec, download, tmpdir)
       File "d:\xuepy\lib\site-packages\setuptools\command\easy_install.py", lin
e 890, in install_eggs
         return self.build_and_install(setup_script, setup_base)
       File "d:\xuepy\lib\site-packages\setuptools\command\easy_install.py", lin
e 1158, in build_and_install
         self.run_setup(setup_script, setup_base, args)
       File "d:\xuepy\lib\site-packages\setuptools\command\easy_install.py", lin
e 1146, in run_setup
         raise DistutilsError("Setup script exited with %s" % (v.args[0],))
     distutils.errors.DistutilsError: Setup script exited with error: Microsoft
Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": htt
ps://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check th
e logs for full command output.

C:\Users\kgfs>
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-6-1 16:43:21 | 显示全部楼层
Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"
下个VC++ 14.0
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-6-1 16:45:37 | 显示全部楼层
Python 版本号是多少? 去下载对应的 whl 然后安装试试?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-11 17:12

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表