问题描述
源码运行没有问题,使用pyinstaller打包成exe之后,出现一个对话框“The application can not locate Python38.dll(126)找不到指定的模块
关闭后,出现:
RuntimeError: The win32ui module could not initialize the application object.
原因分析:
程序中有使用到pywinauto,在网上有看到,有说是版本导致的。
python版本:python38 32bit
pywinauto版本:300
解决方案:
pywinauto版本304,问题没有出现了。
pip install pywin32==304