sdl2 - ImportError: DLL load failed: The specified module could not be found and [CRITICAL] [App] Unable to get a Window, abort sdl2 - ImportError: DLL load failed: The specified module could not be found and [CRITICAL] [App] Unable to get a Window, abort python python

sdl2 - ImportError: DLL load failed: The specified module could not be found and [CRITICAL] [App] Unable to get a Window, abort


I had the same problem. I solved this by removing Kivy and its dependencies first.

python -m pip uninstall kivypython -m pip uninstall kivy.deps.sdl2python -m pip uninstall kivy.deps.glewpython -m pip uninstall kivy.deps.gstreamerpython -m pip uninstall image

Now reinstalling everything except gstreamer.

python -m pip install --upgrade pip wheel setuptoolspython -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew --extra-index-url https://kivy.org/downloads/packages/simple/python -m pip install kivy

It solved the error. Credits to Ben R's Answer.


I had the very same problem, and for me the solution was to make use of virtualenv instead of venv. This forces Kivy to use a specific installation of Python.

  1. Download and install Python 3.7, since 3.8 doesn't seem to be supported yet (https://www.python.org/downloads/release/python-376/)

  2. Install virtualenv if not already installed

    pip install virtualenv

  3. Create a virtual environment, specifying the path to the newly installed Python version

    virtualenv --python=C:\path\to\Python37\python.exe my_venv

  4. Activate the new virtual environment

    my_venv/Scripts/activate.bat

  5. Install kivy according to Javapocalypse's answer

    python -m pip install --upgrade pip wheel setuptoolspython -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew extra-index-url https://kivy.org/downloads/packages/simple/python -m pip install kivy


I got the same problem with Python 3.9.1.

Reinstallation of kivy.deps.sdl2, kivy.deps.glew, kivy in the default user mode didn't work for me.

Then I found this comment, which suggested to install these packages in admin mode. It works.https://github.com/kivy/kivy/issues/5677#issuecomment-389990608