How to install python application with tkcalendar module by pyinstaller?

后端 未结 3 2018
耶瑟儿~
耶瑟儿~ 2020-11-30 14:36

I\'m trying to install python application on Windows with pyinstaller where I\'m using tkcalendar. Application is working but the tkcalendar.Calendar isn\'t.

When I\

3条回答
  •  时光说笑
    2020-11-30 15:18

    If anyone found the same problem. In tkcalendar 1.5.0 there is problem with import in calendar.py.

    Locate the tkcalendar folder (probably /.../python/Lib/site-packages/tkcalendar) and under calendar.py add an additional import for the missing module:

    import calendar
    from babel.dates import format_date, parse_date, get_day_names, get_month_names
    from babel.numbers import *  # Additional Import```
    

提交回复
热议问题