Python:PyQt4 QtGui导入错误:DLL加载失败
我一直在尝试使用PyQt4,但我永远无法使用QtGui。我收到以下错误Python:PyQt4 QtGui导入错误:DLL加载失败,python,pyqt4,qtgui,Python,Pyqt4,Qtgui,我一直在尝试使用PyQt4,但我永远无法使用QtGui。我收到以下错误 from PyQt4 import QtGui ImportError: DLL load failed: The specified module could not be found. 从下面的代码 import sys from PyQt4 import QtGui app = QtGui.QApplication(sys.argv) #define the app win = QtGui.Qwidget
from PyQt4 import QtGui
ImportError: DLL load failed: The specified module could not be found.
从下面的代码
import sys
from PyQt4 import QtGui
app = QtGui.QApplication(sys.argv) #define the app
win = QtGui.Qwidget() #define the window
win.show() #show the window
我认为这可能是安装的问题-我已经尝试使用exe安装程序以及手动将下载放在适当的区域。我还确保path变量是正确的
我还安装了Python(Python35)并多次卸载它-一个可能的问题是,我的Python安装总是以C:\Users\Frank\AppData\Local\Programs\Python\Python35结束
每当我安装PyQt时,我都会确保所有适当的文件都放在这个目录中,但仍然-不走运!我没有主意了
提前感谢。您可以尝试使用包含Python和PyQt4的安装包。例如