简体   繁体   English

PyQt Python GUI到Windows应用程序

[英]PyQt Python GUI to Windows application

I created a Python GUI using pyqt4 and after converting it into an exe and running it I am get the following error: 我使用pyqt4创建了一个Python GUI,将其转换为exe并运行后,出现以下错误:

**import error: DLL load failed %1 is not a valid win32 application** .

I tried pyinstaller, cx_freeze and even py2exe but got the same error. 我尝试了pyinstaller,cx_freeze甚至py2exe,但遇到了相同的错误。 From the errors I understood that it's not importing PyQt4.QtGui and PyQt4.QtCore so i changed the of importing but got the same error and all Pyqt4, python 2.7 win x64 version so please help me out. 从错误中我了解到它不是导入PyQt4.QtGuiPyQt4.QtCore的,所以我更改了导入的,但是得到了相同的错误,并且所有Pyqt4,python 2.7都赢得了x64版本,所以请帮助我。

是的,我得到了解决方案,最初我试图在Linux中使用Wine与python和qt4作为64位来创建Win应用程序,但是当我在Windows OS中使用pyinstaller尝试相同的操作时,它创建了一个exe文件....(我仍然不知道之所以)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM