How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found?

后端 未结 7 1362
走了就别回头了
走了就别回头了 2020-12-19 04:12

[PROBLEM] How can I bypass kivy module error: ImportError: DLL load failed: The specified module could not be found ?

Note: I have installed kivy with: pip i         


        
相关标签:
7条回答
  • 2020-12-19 04:26

    My two cents on this issue: I had all dependencies installed, but was still getting this issue. The reason was that I installed them using

    pip install --user docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew 
    

    Once I removed the --user flag and re-installed all dependencies and kivy, the system was able to find the DLLs and run the Kivy application.

    0 讨论(0)
  • 2020-12-19 04:30

    On Windows, glew and sdl2 are required as dependencies. I had the same problem. Installing all the dependencies

    python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
    

    and then reinstalling kivy worked for me.

    0 讨论(0)
  • 2020-12-19 04:43

    For pycharm, got to PyCharm's Settings > Project Interpreter and install kivy.deps.sdl2 and kivy.deps.glew packages. Worked for me.

    0 讨论(0)
  • 2020-12-19 04:44

    If you have already installed kivy in windows without installing dependencies use these command separately It will work,

    python -m pip install kivy.deps.sdl2
    
    python -m pip install kivy.deps.glew 
    
    0 讨论(0)
  • 2020-12-19 04:46

    I had this same error message. Maybe the same cause, maybe something different.

    I am using PyCharm 5 and had installed Kivy using PyCharm's Settings > Project Interpreter interface to my user folder.
    I removed that installation of Kivy by navigating to the AppData user folder and deleting the kivy folders there.

    I then installed Kivy to the Python site-packages folder (by not ticking the option to install to the user folder), and it worked for me.

    0 讨论(0)
  • 2020-12-19 04:48

    All you have to do is the following - first run this in your cmd:

    python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
    

    Next you will see on the cmd whether it is installed or upgraded

    Now just you have to know the problem it still not working that you downloaded the dependencies which it kivy.deps.sdl2 and kivy.deps.glew in the following directory C:\Python27\Lib\site-packages because you used pip

    When you need it to be in the same directory but in the kivy file

    C:\Python27\Lib\site-packages\kivy 
    

    then the all you have to do that copy paste the file from

     C:\Python27\Lib\site-packages   
    

    to be in

     C:\Python27\Lib\site-packages\kivy 
    

    and it will work

    0 讨论(0)
提交回复
热议问题