E
E
Egor Uchaikin2022-02-06 14:23:22
Python
Egor Uchaikin, 2022-02-06 14:23:22

Subprocess error while installing Kivy on Windows. What to do?

I tried to install Kivy via pip according to the instructions from the official site, however, when I try to install, the console gives the following error:

(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.


If it matters, I have python 3.10.

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2022-02-06
@MrDoso4ka

spoiler
Если это важно, у меня стоит
Очень рады за вас

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

We are slowly rolling back to python 3.8
. Also, if you wish, before installing any library, it is advisable to read off. installation instructions :
Kivy 2.0.0 officially supports Python versions 3.6 - 3.9. - the second sentence in the instructions!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question