Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/362.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用pyinstaller安装并运行compiled.exe时,python kivy返回错误_Python_Kivy_Pyinstaller_Python 3.9 - Fatal编程技术网

使用pyinstaller安装并运行compiled.exe时,python kivy返回错误

使用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程序,在使用时没有返回错误

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