【发布时间】:2019-07-05 12:17:52
【问题描述】:
我正在尝试使用 pyinstaller 从此脚本中获取 .exe 文件
我在测试目录中使用了这个命令pyinstaller -w -F test.py
文件 test.py 包含
from tkinter import *
from tkcalendar import DateEntry
root = Tk()
date = DateEntry(root, year=2001, month=11, day=11, width=17,)
date.pack()
root.mainloop()
我得到的 .exe 文件不工作?
当我这样做时 pyinstaller -F test.py 我得到控制台上没有名为 babel.numbers 的模块的错误
【问题讨论】:
-
你试过
cx_Freeze -
没有。 @RahulAgarwal
-
我发现它比其他软件包非常简单和更好。在 SO 中有很多相同的答案
-
我通常使用
cx_Freeze、py2exe或nuitka;pyInstaller经常给我带来麻烦。您不能在客户端机器上安装 Python 的任何原因? -
@AgiHammerthief 你是什么意思你不能在客户端机器上安装 Python 的任何原因?
标签: python pyinstaller tkcalendar