如何在PyQt5中修复ImportError?

时间:2017-04-10 16:47:28

标签: python python-3.x pyqt pyqt5

我安装了新版本的Anaconda(Python 3.6),现在我无法导入PyQt。 我重新安装了三次并将<>\Anaconda3.6\Lib\site-packages\PyQt5\Qt\bin添加到PATH变量。但它没有帮助。

$ python
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: Could not find the specified module

1 个答案:

答案 0 :(得分:1)

尝试将文件python3.dllpython.org添加到您的anaconda目录。 就我而言,我只有python36.dll