【问题标题】:Is is possible to use pyinstaller to build the exe with my own icon?是否可以使用 pyinstaller 用我自己的图标构建 exe?
【发布时间】:2013-05-01 17:40:06
【问题描述】:

我正在使用 pyinstaller 2.0 和 python 2.7 从我的 pyqt 应用程序构建一个 onedir exe。一切正常... exe 运行并在程序栏中显示指定的图标,但为 exe 显示的图标仍然是 pyinstaller 图标。

是否可以使用 pyinstaller 来构建带有我自己的图标的 exe?

我的构建命令是:

c:\python27\python.exe c:\pyinstaller\pyinstaller.py --noconsole --icon="myprog.ico" --out="C:\out" "C:\out\myprog.py"

我已经尝试修改规范文件的 exe 部分以包含“icon='myicon.ico'”,但这没有奏效。

【问题讨论】:

    标签: python pyqt pyinstaller


    【解决方案1】:

    我遇到了同样的问题,通过安装 pywin32 解决了

    【讨论】:

    • 就是这样......你太棒了!
    猜你喜欢
    • 1970-01-01
    • 2017-03-03
    • 1970-01-01
    • 2019-03-20
    • 2020-12-19
    • 1970-01-01
    • 2013-11-08
    • 2016-02-12
    • 1970-01-01
    相关资源
    最近更新 更多