Python 安装PyQt4&引用;DLL加载失败:找不到指定的模块;

Python 安装PyQt4&引用;DLL加载失败:找不到指定的模块;,python,pyqt4,Python,Pyqt4,我在互联网上看到过这种和类似的问题,但没有一种解决方案适合我 我正在尝试在windows 10 64x上安装PyQt4。我正在运行一个32xPython 3.5.2 我下载了PyQt的二进制软件包。我在C:\Users\…\Python35-32\Lib\site packages\PyQt4中安装了它接下来,我尝试用python导入它: >>> from PyQt4 import QtGui Traceback (most recent call last): File "&

我在互联网上看到过这种和类似的问题,但没有一种解决方案适合我

我正在尝试在windows 10 64x上安装PyQt4。我正在运行一个32xPython 3.5.2

我下载了PyQt的二进制软件包。我在
C:\Users\…\Python35-32\Lib\site packages\PyQt4中安装了它接下来,我尝试用python导入它:

>>> from PyQt4 import QtGui
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
from PyQt4 import QtGui
ImportError: DLL load failed: The specified module could not be found.`.
接下来,我再次尝试安装PyQt,希望这次会出现sipconfig。事实并非如此

C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\sip-4.18.1>cd C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyQt-win-gpl-4.11.4

C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyQt-win-gpl-4.11.4>configure.py
Traceback (most recent call last):
  File "C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-    packages\PyQt-win-gpl-4.11.4\configure.py", line 27, in <module>
    import sipconfig
ImportError: No module named 'sipconfig'.
C:\Users\mitch\AppData\Local\Programs\Python35-32\Lib\site packages\sip-4.18.1>cd C:\Users\mitch\AppData\Local\Programs\Python35-32\Lib\site packages\PyQt-win-gpl-4.11.4
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site packages\PyQt-win-gpl-4.11.4>configure.py
回溯(最近一次呼叫最后一次):
文件“C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyQt-win-gpl-4.11.4\configure.py”,第27行,在
导入sipconfig
ImportError:没有名为“sipconfig”的模块。
我试图手动将sipconfig文件从sip目录复制到PyQt4目录,但也没有成功

我已将PyQt4目录添加到路径。 另外,我在网上看到一些人从PyQt4/bin复制了一些文件。我的PyQt目录中没有bin目录

C:\Users\mitch\...\Python35-32\Lib\site-packages\PyQt-win-gpl-4.11.4>cd C:\Users\mitch\...\Python35-32\Lib\site-packages\sip-4.18.1

C:\Users\mitch\...\Python35-32\Lib\site-packages\sip-4.18.1>configure.py

C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\sip-4.18.1>configure.py
This is SIP 4.18.1 for Python 3.5.2 on win32.
The SIP code generator will be installed in
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32.
The sip module will be installed in
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages.
The sip.pyi stub file will be installed in
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages.
The sip.h header file will be installed in
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\include.
The default directory to install .sip files in is
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\sip.
Creating siplib\sip.h...
Creating siplib\siplib.c...
Creating siplib\siplib.sbf...
Creating sipconfig.py...
Creating top level Makefile...
Creating sip code generator Makefile...
Creating sip module Makefile...
C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\sip-4.18.1>cd C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyQt-win-gpl-4.11.4

C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-packages\PyQt-win-gpl-4.11.4>configure.py
Traceback (most recent call last):
  File "C:\Users\mitch\AppData\Local\Programs\Python\Python35-32\Lib\site-    packages\PyQt-win-gpl-4.11.4\configure.py", line 27, in <module>
    import sipconfig
ImportError: No module named 'sipconfig'.