Home
Sign Up
Sign In
V2EX
›
问与答
pyinstaller 打包 pyqt5 程序也只能在命令行里运行?
angel725
·
Oct 4, 2018
· 2126 views
This topic created in 2785 days ago, the information mentioned may be changed or developed.
pyqt5 做的 gui,能正常运行。
用 pyinstaller
XX.py
打包后,直接打开就有一个黑框
然后我加了参数-w
pyinstaller -w
xx.py
直接运行就:Failed to execute script main
但在命令行里就可以。
怎么回事呢?
pyqt5
行里
打包
命令
2 replies
•
2018-10-04 18:05:42 +08:00
1
romanten
Oct 4, 2018 via iPhone
没有用过 pyqt。有用到 qt 的那些 gui 库吗?我用 c++写的传统 widgets 最后打包都是用 qt 自带命令行的 windeployqt 命令行工具,配置各动态库。
2
coderluan
Oct 4, 2018
支持 gui,不过这两个合起来坑很多,各种兼容性问题,只能慢慢调试和排除。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1625 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms ·
UTC 16:31
·
PVG 00:31
·
LAX 09:31
·
JFK 12:31
♥ Do have faith in what you're doing.
❯