使用pyinstaller安装并运行compiled.exe时,python kivy返回错误
我创建了一个python程序,在使用时没有返回错误使用pyinstaller安装并运行compiled.exe时,python kivy返回错误,python,kivy,pyinstaller,python-3.9,Python,Kivy,Pyinstaller,Python 3.9,我创建了一个python程序,在使用时没有返回错误 python index.py 这是成功的,没有错误 但当使用pyinstaller运行编译时,返回以下错误: [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 le
python index.py
这是成功的,没有错误
但当使用pyinstaller
运行编译时,返回以下错误:
[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 - Exception: SDL2: Unable to load image
File "kivy\core\__init__.py", line 70, in core_select_lib
File "kivy\core\window\window_sdl2.py", line 152, in __init__
File "kivy\core\window\__init__.py", line 982, in __init__
File "kivy\core\window\window_sdl2.py", line 311, in create_window
File "kivy\core\window\__init__.py", line 1268, in create_window
File "kivy\graphics\instructions.pyx", line 783, in
kivy.graphics.instructions.RenderContext.__init__
File "kivy\core\image\__init__.py", line 561, in __init__
File "kivy\core\image\__init__.py", line 754, in _set_filename
File "kivy\core\image\__init__.py", line 460, in load
File "kivy\core\image\__init__.py", line 223, in __init__
File "kivy\core\image\img_sdl2.py", line 47, in load
[CRITICAL] [App ] Unable to get a Window, abort.
我在ui中使用了kivy库
并使用python版本3.9.2