无法在 Windows 10 上成功运行 kivy



我曾尝试在windows 10上安装kivy,在我从一开始就安装、卸载和重新安装了所有东西之后,我在尝试运行演示文件甚至"Hello world"测试时遇到了这个问题:

C:Users97252tutorial_envScriptspython.exe C:/Users/97252/Desktop/matan.py
[INFO   ] [Logger      ] Record log in C:Users97252.kivylogskivy_20-12-31_85.txt
[INFO   ] [deps        ] Successfully imported "kivy_deps.gstreamer" 0.3.1
[INFO   ] [deps        ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.angle_dev" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.glew" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.glew_dev" 0.3.0
[INFO   ] [deps        ] Successfully imported "kivy_deps.sdl2" 0.3.1
[INFO   ] [deps        ] Successfully imported "kivy_deps.sdl2_dev" 0.3.1
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "C:Users97252tutorial_envlibsite-packageskivy__init__.py"
[INFO   ] [Python      ] v3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "C:Users97252tutorial_envScriptspython.exe"
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil (img_sdl2, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:Users97252tutorial_envlibsite-packageskivycore__init__.py", line 62, in core_select_lib
fromlist=[modulename], level=0)
File "C:Users97252tutorial_envlibsite-packageskivycorewindowwindow_sdl2.py", line 27, in <module>
from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[CRITICAL] [App         ] Unable to get a Window, abort.
Process finished with exit code 1

有人能帮我吗?

谢谢!

我通过更改pyCharm IDE中的项目解释器来运行脚本。

相关内容

最新更新