![](/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.