【问题标题】:I have a problem when I convert python file to exe我在将 python 文件转换为 exe 时遇到问题
【发布时间】:2023-02-04 09:11:40
【问题描述】:

当我单击程序运行它时,我看到消息说:Traceback(最近一次调用):

  File "employee manager.py", line 388, in <module>

  File "tkcalendar\dateentry.py", line 128, in __init__

  File "tkcalendar\calendar_.py", line 258, in __init__

  File "babel\dates.py", line 351, in get_day_names

  File "babel\core.py", line 652, in days

  File "babel\core.py", line 363, in _data

  File "babel\localedata.py", line 140, in load

  File "babel\localedata.py", line 146, in load

ModuleNotFoundError: No module named 'babel.numbers'

我需要打开程序

【问题讨论】:

  • 你安装了babel吗?

标签: python windows cmd exe converters


【解决方案1】:

答:很可能需要更多信息来解决这个问题

此外,它还说:ModuleNotFoundError: No module named 'babel.numbers' "numbers" 是 babel 的订阅。如果您想获取号码订阅,请尝试这样做:from babel import numbers

祝你好运!我会根据需要尽量对应!

【讨论】:

  • 假设他们确实 pip install babel
  • 是的,尽管“babel.numbers”无论如何都不是模块的正确语法。
  • @乔纳森什么? wdym 语法不正确?这怎么不合适?肯定可以做到import babel.numbers
  • 嗯......我个人没有使用过babel,但一般来说,“。”修饰符保留用于功能,例如; class Animal(): def bark(): print(sound) x = Animal() x.bark()
  • 在模块方面,您使用: from babel import {sub-module name}
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-04-05
  • 1970-01-01
  • 2020-04-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-22
相关资源
最近更新 更多