[英]DLL load failed, While using Kivy on Python
I was trying to execute some gui with Kivy and this is what is shows me! 我试图用Kivy执行一些GUI,这就是给我看的!
[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. 最有可能是您安装的kivy错误或不完整。 I think this problem appeared when people compiled kivy with the 1.8.0 portable package and it didn't compile graphic dlls. 我认为当人们使用1.8.0便携式软件包编译kivy并且未编译图形dll时出现了此问题。
Uninstall kivy from python and install it again through wheel (already compiled package), it's simple. 从python卸载kivy,然后通过wheel (已编译的软件包)再次安装,很简单。 Or try KivyInstaller . 或尝试KivyInstaller 。
我的解决方案是:pip install kivy.deps.glew
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.