Windows kivy 应用程序使用 PyInstaller 成功构建,但不起作用 [英] Windows kivy app successfully builds using PyInstaller, but doesn't work

查看:30
本文介绍了Windows kivy 应用程序使用 PyInstaller 成功构建,但不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用 PyInstallerkivy 项目在 Windows 中创建一个可执行文件,即使它似乎已成功创建,当我尝试运行它时,我明白了

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

这是什么原因造成的?我对 kivy 比较陌生,任何帮助将不胜感激

What could cause this? I'm relatively new to kivy, and any help will be much appreciated

推荐答案

好吧,其实我自己想出来的.虽然我不认为我的解决方案在任何方面都很优雅,并且将来可能会导致其他一些问题,但我只是编辑了 PyInstaller 包目录中的 pyi_rth_pkgutil.py (现在情况, 以前的情况) 并重新运行 pyinstaller 包创建脚本.在那之后它就起作用了

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. It just worked after that

这篇关于Windows kivy 应用程序使用 PyInstaller 成功构建,但不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆