PyQt6: ImportError: DLL load failed while importing QtGui

Phil Thompson phil at
Fri Apr 15 13:06:33 BST 2022

On 15/04/2022 13:04, Phil Thompson wrote:
> On 15/04/2022 12:45, Ales Erjavec wrote:
>> Hi
>> Since PyQt6 6.3.0 was released, installing PyQt6 with:
>> pip install PyQt6==6.2.3
>> installs PyQt6==6.2.3 and PyQt6-Qt6==6.3.0
>> On Windows this combination raises an:
>> ImportError: DLL load failed while importing QtGui: The specified
>> procedure could not be found.
>> when trying to import QtGui (on linux and macos this combination seems 
>> to work).
>> As I understand PyQt6 should in general work with newer Qt releases.
>> Should we always specify PyQt6 and PyQt6-Qt6 versions together to get
>> a consistent env?
> That would suggest that Qt v6.3.0 is not binary forward compatible
> with Qt v6.2 on Windows - which would be a bug. However it could also
> be a missing DLL that QtGui v6.3 is dependent on.

Actually that second point can't be the case as it would also fail for 
PyQt v6.3.


More information about the PyQt mailing list