【问题标题】:cx_freeze Won't create Metadata?cx_freeze 不会创建元数据?
【发布时间】:2014-03-22 03:49:05
【问题描述】:

当我在构建程序后查看属性窗口时,它应该给我版本号和描述的地方是空白的。这是我的代码

import sys
from cx_Freeze import setup, Executable

exe = Executable(

   script = "ROT13.py",
   initScript = None,
   base = None,
   targetName = "ROT13.exe",
   copyDependentFiles = True,
   compress = True,
   appendScriptToExe = True,
   appendScriptToLibrary = True,
   icon = "blah.png",
)

setup(
    name = "ROT13 Translator",
    version = "0.1",
    description = "A ROT13 Translator",
    executables = [Executable("ROT13.py", base = "Console")]
)

为什么这不起作用?

【问题讨论】:

  • 属性窗口是如何生成的?您使用的是什么 GUI 工具包?

标签: python-3.x cx-freeze


【解决方案1】:

安装pywin32 (pip install pywin32) 为我解决了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-07-10
    • 2021-01-17
    • 2019-07-11
    • 2021-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多