我已经完成了kivy guide中的所有操作,但是我在命令提示符中得到了这些警告。即使有警告,安装也已完成,但是当我尝试打开.exe文件时,它将打开然后立即关闭。如何解决该问题并将我的.kv和.py文件转换为.exe文件。
我的.spec文件:
from kivy_deps import sdl2, glew # -*- mode: python -*- block_cipher = None a = Analysis(['gui.py'], pathex=['C:\\Users\\can_i\\Desktop\\CHAT'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher, noarchive=False) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) exe = EXE(pyz, a.scripts, [], exclude_binaries=True, name='Chat', debug=False, bootloader_ignore_signals=False, strip=False, upx=True, console=True ) coll = COLLECT(exe, Tree('needs'), a.binaries, a.zipfiles, a.datas, strip=False, upx=True, name='Chat')
以下是警告:(我无法粘贴所有警告,因为它超出了字符限制。FULL CMD LOG)
17902 INFO: Looking for dynamic libraries 17977 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pythoncom37.dll 18043 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pythoncom37.dll 18102 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pythoncom37.dll 18162 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pythoncom37.dll 18222 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pythoncom37.dll 18293 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pywintypes37.dll 18356 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pywintypes37.dll 18417 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pywintypes37.dll 18476 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pywintypes37.dll 18537 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pywintypes37.dll 18597 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\pywin32_system32\pywintypes37.dll 18666 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\win32\win32trace.pyd 18726 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\win32\win32trace.pyd 18797 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\Pythonwin\win32ui.pyd 18861 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\Pythonwin\win32ui.pyd 18922 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\Pythonwin\win32ui.pyd 18985 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\Pythonwin\win32ui.pyd 19049 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\Pythonwin\win32ui.pyd 19109 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\lib\site- packages\Pythonwin\win32ui.pyd 19182 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37- 32\DLLs\_multiprocessing.pyd 19263 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_queue.pyd 19329 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37- 32\DLLs\_decimal.pyd 19389 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_decimal.pyd 19449 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37- 32\DLLs\_decimal.pyd 19508 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_decimal.pyd 19567 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_decimal.pyd 19628 WARNING: lib not found: api-ms-win-crt-locale-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_decimal.pyd 19688 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_decimal.pyd 19755 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of C:\Users\can_i\AppData\Local\Programs\Python\Python37-32\DLLs\_ctypes.pyd