简体   繁体   English

在Python上使用Kivy时,DLL加载失败

[英]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.

相关问题 kivy:作为模块安装,DLL加载失败,但可与kivy.bat一起使用 - kivy: installed as module, DLL load failed but works with kivy.bat Dll 在 python 中加载失败 - Dll load failed in python PYTHON DLL加载失败 - PYTHON DLL load failed “ImportError:DLL加载失败:无法找到指定的过程” - 使用Keras在Python中使用CNN进行数字识别 - “ ImportError: DLL load failed: The specified procedure could not be found”- while Digit Recognition using CNN in Python using Keras 使用 PyInstaller 时出现“ImportError: DLL load failed while importing” - "ImportError: DLL load failed while importing" while using PyInstaller 在PyCharm IDE中使用Python进行数据分类时遇到“导入错误:DLL加载失败:找不到指定的过程” - Encountered “ImportError: DLL load failed: The specified procedure could not be found” while Data Classification using Python in PyCharm IDE Python - DLL 在导入 open3d 时加载失败 - Python - DLL load failed while importing open3d 如何在 python 中的“ImportError: DLL load failed while importing”中找到哪个 DLL 失败? - How to find which DLL failed in “ImportError: DLL load failed while importing” in python? python + opencv“ DLL加载失败” - python + opencv “dll load failed” python DLL加载失败(statsmodels) - python DLL load failed (statsmodels)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM