Установить пакет Fail для пакета Kivy наPycharm - PullRequest
0 голосов
/ 24 апреля 2020

Я пытался установить пакет kivy на pycharm , но это не сработало: ОШИБКА: Команда завершилась ошибкой с состоянием выхода 1: Рекомендуемое решение состояло в том, чтобы попытаться запустить это Команда из системного терминала (pip install Kivy) я попробовал, и результат был: Требование уже выполнено. Я также установил Microsoft Visual Studio 14.00, и я нахожусь на Python 3.8, и это было также требование уже актуально для пипа

Collecting Kivy
  Using cached https://files.pythonhosted.org/packages/1b/4d/3f8a720f561dc1eabe036c0d87c6ce9d02823275391265538e606f45e37a/Kivy-1.11.1.tar.gz

    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\MOUN\\AppData\\Local\\Temp\\pycharm-packaging\\Kivy\\setup.py'"'"'; __file__='"'"'C:\\Users\\MOUN\\AppData\\Local\\Temp\\pycharm-packaging\\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 pip-egg-info
         cwd: C:\Users\MOUN\AppData\Local\Temp\pycharm-packaging\Kivy\
    Complete output (202 lines):
    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
    fatal: not a git repository (or any of the parent directories): .git
     Unable to find pgen, not compiling formal grammar.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Plex\Scanners.py because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Plex\Actions.py because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\Scanning.py because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\Visitor.py because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\FlowControl.py because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Runtime\refnanny.pyx because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\FusedNode.py because it changed.
    Compiling C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Tempita\_tempita.py because it changed.
    [1/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\FlowControl.py
    [2/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\FusedNode.py
    [3/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\Scanning.py
    [4/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Compiler\Visitor.py
    [5/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Plex\Actions.py
    [6/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Plex\Scanners.py
    [7/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Runtime\refnanny.pyx
    [8/8] Cythonizing C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\Cython\Tempita\_tempita.py
     warning: no files found matching 'Doc\*'
     warning: no files found matching '*.pyx' under directory 'Cython\Debugger\Tests'
     warning: no files found matching '*.pxd' under directory 'Cython\Debugger\Tests'
     warning: no files found matching '*.pxd' under directory 'Cython\Utility'
     warning: no files found matching 'pyximport\README'
     warning: build_py: byte-compiling is disabled, skipping.

     Traceback (most recent call last):
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\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 "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\core.py", line 148, in setup
         dist.run_commands()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 966, in run_commands
         self.run_command(cmd)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
         cmd_obj.run()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\bdist_egg.py", line 172, in run
         cmd = self.call_command('install_lib', warn_dir=0)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\bdist_egg.py", line 158, in call_command
         self.run_command(cmdname)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\cmd.py", line 313, in run_command
         self.distribution.run_command(command)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
         cmd_obj.run()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\install_lib.py", line 11, in run
         self.build()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\install_lib.py", line 107, in build
         self.run_command('build_ext')
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\cmd.py", line 313, in run_command
         self.distribution.run_command(command)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\dist.py", line 985, in run_command
         cmd_obj.run()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
         _build_ext.run(self)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 340, in run
         self.build_extensions()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 449, in build_extensions
         self._build_extensions_serial()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
         self.build_extension(ext)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\build_ext.py", line 205, in build_extension
         _build_ext.build_extension(self, ext)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\command\build_ext.py", line 528, in build_extension
         objects = self.compiler.compile(sources,
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 360, in compile
         self.initialize()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\distutils\_msvccompiler.py", line 253, in initialize
         vc_env = _get_vc_env(plat_spec)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\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 "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\msvc.py", line 843, in __init__
         self.si = SystemInfo(self.ri, vc_ver)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\msvc.py", line 485, in __init__
         self.vc_ver = vc_ver or self._find_latest_available_vc_ver()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\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 required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
         yield saved
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
         yield
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
         _execfile(setup_script, ns)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
         exec(code, globals, locals)
       File "C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\setup.py", line 228, in <module>
         This version of Cython is untested with Kivy. While this version may
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 145, in setup
         return distutils.core.setup(**attrs)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\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 "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

     During handling of the above exception, another exception occurred:

     Traceback (most recent call last):
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 1144, in run_setup
         run_setup(setup_script, args)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 253, in run_setup
         raise
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\contextlib.py", line 131, in __exit__
         self.gen.throw(type, value, traceback)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
         yield
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\contextlib.py", line 131, in __exit__
         self.gen.throw(type, value, traceback)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 166, in save_modules
         saved_exc.resume()
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 141, in resume
         six.reraise(type, exc, self._tb)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\_vendor\six.py", line 685, in reraise
         raise value.with_traceback(tb)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 154, in save_modules
         yield saved
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 195, in setup_context
         yield
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 250, in run_setup
         _execfile(setup_script, ns)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\sandbox.py", line 45, in _execfile
         exec(code, globals, locals)
       File "C:\Users\MOUN\AppData\Local\Temp\easy_install-8dtcnizc\Cython-0.29.10\setup.py", line 228, in <module>
         This version of Cython is untested with Kivy. While this version may
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 145, in setup
         return distutils.core.setup(**attrs)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\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 "Microsoft 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\MOUN\AppData\Local\Temp\pycharm-packaging\Kivy\setup.py", line 1073, in <module>
         setup(
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
         _install_setup_requires(attrs)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires
         dist.fetch_build_eggs(dist.setup_requires)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 716, in fetch_build_eggs
         resolved_dists = pkg_resources.working_set.resolve(
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 780, in resolve
         dist = best[req.key] = env.best_match(
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1065, in best_match
         return self.obtain(req, installer)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pkg_resources\__init__.py", line 1077, in obtain
         return installer(requirement)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\dist.py", line 786, in fetch_build_egg
         return cmd.easy_install(req)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 679, in easy_install
         return self.install_item(spec, dist.location, tmpdir, deps)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 705, in install_item
         dists = self.install_eggs(spec, download, tmpdir)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 890, in install_eggs
         return self.build_and_install(setup_script, setup_base)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 1158, in build_and_install
         self.run_setup(setup_script, setup_base, args)
       File "C:\Users\MOUN\AppData\Local\Programs\Python\Python38-32\lib\site-packages\setuptools\command\easy_install.py", line 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": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.```

...