python - Pyinstaller .exe 可从终端运行,但不能通过双击 -> 闪烁控制台窗口

标签 python python-3.x windows pyinstaller executable

当我使用 dist\app\app.exe 从终端运行项目文件夹中的 .exe 时,它​​运行良好,我可以在终端等中看到我的输出。

但是,双击 .exe 我只会看到一个闪烁的终端窗口。

有人有想法或线索吗?

最佳答案

受到以下帖子的启发:PyInstaller .exe file does nothing我尝试在安装程序命令中使用 --noupx ,这让我可以通过双击来运行应用程序,同时在后台有一个终端窗口(我现在对此很满意)。

关于python - Pyinstaller .exe 可从终端运行,但不能通过双击 -> 闪烁控制台窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65393282/

相关文章:

python-3.x - 谷歌云存储客户端库 - 在代理后面 - 使用 python 代码访问存储桶对象?

python - 通过记事本在windows中执行python(F6 Exec命令__main__错误)

Python:Pandas pd.read_excel 给出 ImportError:安装 xlrd >= 0.9.0 以获得 Excel 支持

python - "ValueError: could not convert string to float"转换输入时

python - 自定义标记器 NLTK 3

c++ - 什么是WINVER?

c++ - 如何将 OpenPrinter 用于网络打印机?

python - Cython 比 Numpy 慢(来自 Python Cookbook 的示例)

Python YAML 转储特殊字符和多行

python - OpenCV,将物体分成几部分