Cannot import PyQt5

705 Views Asked by At

In Python (v3.6, Win10) I get an error, if I try to import QtChart. The command

>from PyQt5.QtChart import *

yields this message:

ImportError: DLL load failed. The specified procedure could not be found

The command pip list shows, that I have matching versions of PyQt5 and PyQtChart

PyQt5                         5.15.1
PyQt5-sip                     12.8.0
PyQtChart                     5.15.1

which rules out this solution. What puzzles me, is that I get

>print(QtCore.PYQT_VERSION_STR)
>5.9.2

I am not sure, if this version number has to match with the one above.

0

There are 0 best solutions below