ADR ADR - 6 months ago 68
Python Question

How to fix ImportError in PyQt5?

I install new version of Anaconda (Python 3.6) and now I can not import PyQt.
I reinstalled it three times and add

<>\Anaconda3.6\Lib\site-packages\PyQt5\Qt\bin
to
PATH
variable. But it did not help.

$ 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

ADR ADR
Answer Source

Try to add file python3.dll from python.org to your anaconda's directory. In my case i had there only python36.dll