I was trying to execute some gui with Kivy and this is what is shows me!
[INFO ] [Logger ] Record log in C:\Users\Administrator\.kivy\logs\kivy_16-03-20_59.txt [INFO ] [Kivy ] v1.9.1 [INFO ] [Python ] v2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] [INFO ] [Factory ] 179 symbols loaded Traceback (most recent call last): File "C:\Users\Administrator\Desktop\vb + pytthon\client.py", line 1, in from kivy.app import App File "C:\Users\Administrator\AppData\Roaming\Python\Python27\site-packages\kivy\app.py", line 327, in from kivy.uix.widget import Widget File "C:\Users\Administrator\AppData\Roaming\Python\Python27\site-packages\kivy\uix\widget.py", line 219, in from kivy.graphics import ( File "C:\Users\Administrator\AppData\Roaming\Python\Python27\site-packages\kivy\graphics\__init__.py", line 89, in from kivy.graphics.instructions import Callback, Canvas, CanvasBase, \ ImportError: DLL load failed: The specified module could not be found.
The code is:
from kivy.app import App from kivy.uix.button import Button class TestApp(App): def build(self): return Button(text='Hello World') TestApp().run()
Most probably you've installed kivy wrong or not completely. I think this problem appeared when people compiled kivy with the 1.8.0 portable package and it didn't compile graphic dlls.
Uninstall kivy from python and install it again through wheel (already compiled package), it's simple. Or try KivyInstaller .
我的解决方案是:pip install kivy.deps.glew
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.