使用 Pyinstaller 打包 - 忽略 PyQt5 setStyle
Packaging with Pyinstaller - PyQt5 setStyle ignored
更新 python、pyistaller、pyqt5、pyqt5-tools 后,我实际上遇到了与 here 所述类似的问题。在我得到想要的 "Windows Vista-style" 而没有 app.setStyle('windowsvista')
之前,当我 运行 编译的独立可执行文件时
现在我得到了 Windows "Classic-style"。如果我在 PyCharm 中启动应用程序,它将使用所需的 "Windows Vista-style".
当前安装在 Win7 64 位上:
Python : 3.6.4
PyInstaller: 3.3.1
PyQt5:5.10
pyqt5-tools: 5.9.0.1.2(更新到 5.9.1.1 不起作用)
有谁知道为什么 PyInstaller 会忽略样式?
该错误似乎已在 PyInstaller 的未合并分支中修复。可以在 the GitHub pull request conversation 上找到更多信息,但使用 pip install https://github.com/bjones1/pyinstaller/archive/pyqt5_fix.zip
重新安装 PyInstaller 为我在 Mac.
上修复了相同的样式问题
更新 python、pyistaller、pyqt5、pyqt5-tools 后,我实际上遇到了与 here 所述类似的问题。在我得到想要的 "Windows Vista-style" 而没有 app.setStyle('windowsvista')
之前,当我 运行 编译的独立可执行文件时
现在我得到了 Windows "Classic-style"。如果我在 PyCharm 中启动应用程序,它将使用所需的 "Windows Vista-style".
当前安装在 Win7 64 位上:
Python : 3.6.4
PyInstaller: 3.3.1
PyQt5:5.10
pyqt5-tools: 5.9.0.1.2(更新到 5.9.1.1 不起作用)
有谁知道为什么 PyInstaller 会忽略样式?
该错误似乎已在 PyInstaller 的未合并分支中修复。可以在 the GitHub pull request conversation 上找到更多信息,但使用 pip install https://github.com/bjones1/pyinstaller/archive/pyqt5_fix.zip
重新安装 PyInstaller 为我在 Mac.