我创建了A' GUI应用程序'使用Python,但是当我通过auto_py_to_exe工具将其转换为EXE文件时,为什么我会收到此错误消息?
我正在用 python
创建 GUI应用程序,但是当我通过 exe 文件将其转换为 auto_py_py_to_exe 工具为什么我收到此错误消息了吗?
错误信息..
Traceback (most recent call last):
File "School MS.py", line 182, in <module>
File "tkcalendar\dateentry.py", line 128, in __init__
File "tkcalendar\calendar_.py", line 258, in __init__
File "babel\dates.py", line 353, in get_day_names
File "babel\core.py", line 641, in days
File "babel\core.py", line 364, in _data
File "babel\localedata.py", line 141, in load
File "babel\localedata.py", line 147, in load
ModuleNotFoundError: No module named 'babel.numbers'
[13604] Failed to execute script 'School MS' due to unhandled exception!
[process exited with code 1 (0x00000001)]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这类似于如何安装Python应用程序使用Pyinstaller的Tkcalendar模块?
确实,在浏览,我意识到这只是Pyinstaller周围的GUI。因此,解决方案是相同的,您需要将
babel.numbers
传递给- hidden-import
选项,在高级部分中GUI。This is similar to the issue in How to install python application with tkcalendar module by pyinstaller?
Indeed, after looking into auto-py-to-exe, I realized that this is just a GUI around PyInstaller. Therefore the solution is the same, you need to pass
babel.numbers
to the--hidden-import
option, in the Advanced section in the GUI.