kivy: How to resolve "No matching distribution found for kivy.deps.sdl2" installation error?

I’m trying to install Kivy according to (what now seem outdated?) your installation instructions. However, I run into the following error.

Collecting kivy.deps.sdl2
  Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: )
No matching distribution found for kivy.deps.sdl2

I don’t understand what this means, because certainly the package is available in pip3 search:

kivy.deps.sdl2 (0.1.18)           - Repackaged binary dependency of Kivy.
kivy.deps.sdl2_dev (0.1.18)       - Repackaged binary dependency of Kivy.

So what is the problem and solution?

BTW. I am using latest Cygwin on x64 with Python 3.6 and all updated pips.

PS. This also seem related to:

  • a very old and already closed issue #4133, but where no solution was shown or presented.
  • and possibly also issue #5174

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (3 by maintainers)

Most upvoted comments

yep! as of now Kivy does not support Python 3.10 and new versions, kivy developers need some time to do that. nobody knows the exact day of release, till that sees the light I have uninstalled python 3.10 and installed python 3.9.7 and it’s working perfectly …when the support releases I am gonna switch back to the new version

@CharacterNerd

As I said, we don’t officially support cygwin hence the issues you ran into. Our installation pages work well for windows, but one should not expect to be able to install msvc compiled wheels (from pypi) in cygwin. For that you need wheels compiled with cygwin, which we don’t make as we don’t seem to have much shared users, nor maintainers using it and limited time.

Alternatively, as you found out and as I mentioned in my initial reply, you can probably compile all the deps yourself and then kivy, cutting out the need of any pre-compiled wheels. To do that, you can look at our linux installation instructions as that is more relevant.

Regarding mingw/msys2, that would possibly be easier to use, but I’m not sure. For py2, you can probably use mingw’s python from pacman and then pip install our wheels because our py2 wheels are compiled with mingw. For py3.5+ we only have msvc wheels because python doesn’t support mingw (https://bugs.python.org/issue4709) yet (although that may have changed) so you’d need to compile all the deps yourself in mingw.

Regarding your last comment, I do not appreciate your tone and your words - I find them quite inappropriate because we try to maintain a civil and welcoming community both for users and maintainers.

Specifically regarding the issues you mentioned:

  • We moved our chat from IRC to discord recently, but it is quite clearly shown in the IRC welcome message. We also updated all our links on the site to point to discord (except in old messages of course). If you find old links, please report it.
  • Our documentation is clearly separated by OS. If you follow the instructions for your OS it should be clear, generally. We don’t have docs for cygwin though, as I said, because we don’t officially support it.
  • Most of the issues you linked are unrelated to your issue.
  • Similarly, the pip errors people typically encounter is due to a multitude of unrelated issues, such as following the instructions for the wrong OS. Or from the past when we were still working on getting the wheels for all python versions.

If you arrive at a working cygwin install, you’re welcome to post the instructions on the wiki and link it here