![](/img/trans.png)
[英]sdl2 - ImportError: DLL load failed: The specified module could not be found and [CRITICAL] [App] Unable to get a Window, abort
[英]How to Fix 'sdl2 - ImportError: DLL load failed' Error in PyCharm
我正在尝试学习Kivy Framework来开发一个简单的App来显示Label。 我正在使用PyCharm IDE。
但是,当我单击“运行”时,会出现以下错误消息:
[关键] [文字]无法找到任何有价值的文字提供者。
sdl2 - ImportError:DLL加载失败:找不到指定的模块。
pil - ImportError:没有名为PIL的模块
这是我的代码:
import kivy
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text="This is a Label")
if __name__ == "__main__":
MyApp().run()
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.