V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jeffxjh
V2EX  ›  问与答

Python 的 tkinter 项目用 pyinstall 打包后 cmd 窗口问题

  •  
  •   jeffxjh · Mar 15, 2022 · 767 views
    This topic created in 1504 days ago, the information mentioned may be changed or developed.

    如题,在运行 exe 以后涉及到一些 cmd 命令的时候,比如:

    • 用 gitpython 模块
    • 直接调用 cmd 命令
    • subprocess 调用 cmd 命令

    都会有 cmd 窗口一闪而过,在 vscode 不会有这种情况,感觉是 pyinstall 的问题,打包参数设置了 noconsole 。

    启动 exe 的时候也会有 cmd 闪过,求教这是为何?感谢!

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1061 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:44 · PVG 02:44 · LAX 11:44 · JFK 14:44
    ♥ Do have faith in what you're doing.