我试图使用pyinstaller在我的应用程序中添加一个闪存屏幕,如下所示:
pyinstaller.exe --onefile --splash=Splash_screen.png --icon=Icon.ico JIGOverview.pyw这将打开闪存屏幕,但它从未关闭,因此我尝试将此代码添加到Python代码中:
import pyi_splash
pyi_splash.update_text('UI Loaded ...')
pyi_splash.close()但我得到一个“没有模块名为'pyi_splash'”错误。如何将此模块添加到代码中?
发布于 2022-02-09 22:39:39
添加-隐藏-进口选项:
pyinstaller.exe --onefile --splash=Splash_screen.png --icon=Icon.ico --hidden-import=pyi_splash JIGOverview.pywhttps://stackoverflow.com/questions/71057636
复制相似问题