@MrDoso4ka
Начинающий программист, что просто хочет выжить:)

Ошибка подпроцесса при установке Kivy на Windows. Что делать?

Я пытался установить Kivy через pip по инструкции с официального сайта, однако, при попытке установки консоль выдаёт следующую ошибку:

(kivy_venv) C:\Users\User>python -m pip install kivy[base]
Collecting kivy[base]
  Using cached Kivy-2.0.0.tar.gz (23.7 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Collecting setuptools
        Using cached setuptools-60.8.0-py3-none-any.whl (1.1 MB)
      Collecting wheel
        Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
      Collecting cython!=0.27,!=0.27.2,<=0.29.21,>=0.24
        Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
      Collecting kivy_deps.gstreamer_dev~=0.3.1
        Using cached kivy_deps.gstreamer_dev-0.3.3-cp310-cp310-win_amd64.whl (3.9 MB)
      ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.3.1 (from versions: 0.4.2, 0.4.3, 0.4.4)
      ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.3.1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

(kivy_venv) C:\Users\User>python -m pip install kivy[base] kivy_examples --no-binary kivy
Collecting kivy[base]
  Using cached Kivy-2.0.0.tar.gz (23.7 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      Collecting setuptools
        Using cached setuptools-60.8.0-py3-none-any.whl (1.1 MB)
      Collecting wheel
        Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
      Collecting cython!=0.27,!=0.27.2,<=0.29.21,>=0.24
        Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
      Collecting kivy_deps.gstreamer_dev~=0.3.1
        Using cached kivy_deps.gstreamer_dev-0.3.3-cp310-cp310-win_amd64.whl (3.9 MB)
      ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.3.1 (from versions: 0.4.2, 0.4.3, 0.4.4)
      ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.3.1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.


Если это важно, у меня стоит python 3.10.

Как решить данную проблему?
  • Вопрос задан
  • 4537 просмотров
Решения вопроса 1
hottabxp
@hottabxp Куратор тега Python
Сначала мы жили бедно, а потом нас обокрали..
спойлер
Если это важно, у меня стоит
Очень рады за вас

ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.3.1 (from versions: 0.4.2, 0.4.3, 0.4.4)
ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.3.1

Потихонечку откатываемся на python 3.8

Также, если есть желание, перед установкой любой библиотеки, желательно почитать офф. инструкцию по установке:
Kivy 2.0.0 officially supports Python versions 3.6 - 3.9. - второе предложение в инструкции!
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы