简体   繁体   English

Windows kivy 应用程序使用 PyInstaller 成功构建,但不起作用

[英]Windows kivy app successfully builds using PyInstaller, but doesn't work

I tried to create an executable file in Windows from a kivy project with PyInstaller , and even though it appears to have been successfully created, when I try to run it, I get this我尝试使用PyInstallerkivy项目在 Windows 中创建一个可执行文件,即使它似乎已成功创建,但当我尝试运行它时,我得到了这个

错误

What could cause this?什么可能导致这种情况? I'm relatively new to kivy , and any help will be much appreciated我对kivy比较kivy ,任何帮助将不胜感激

well, I actually figured it out myself.好吧,其实我自己想通了。 Though I don't think that my solution is in any way elegant and it might cause some other problems in the future, but i just edited the pyi_rth_pkgutil.py from PyInstaller package directory ( how it is now , how it used to be ) and reran the pyinstaller package creation script.虽然我不认为我的解决方案在任何方面都很优雅,并且将来可能会导致其他一些问题,但我只是编辑了 PyInstaller 包目录中的 pyi_rth_pkgutil.py(现在如何,过去如何)和重新运行 pyinstaller 包创建脚本。 It just worked after that在那之后它才起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM