Python tkinter:不能用cmd编译?

2024-04-26 20:21:55 发布

您现在位置:Python中文网/ 问答频道 /正文

好吧,我已经用cx_freeze(3.3)编译到.exe中的程序,但是在cmd中它显示了一个错误:

c:\python33\lib\distutils\dist.py:257: UserWarning :Unknown distribution option:
'executable' 
warning.warn(msg)
running build

我已经尝试卸载并重新安装cx_freeze,但它仍然显示此错误。在

下面是我在命令行中调用的内容:

^{pr2}$

这是我的设置.py文件:

from cx_Freeze import setup, Executable 

setup (
    name = "" , 
    version = "0.1", 
    description = "", 
    executables = [Executable("")] ,
)

任何帮助都将不胜感激!在


Tags: py程序cmdlibdist错误setupexe