3

I am currently using Python 3.6.8 and PyQt5. My program was working fine but after a Windows Update, everything stopped working.

Here is the error:

Traceback (most recent call last):
  File "main.py", line 10, in <module>
    from PyQt5 import QtWidgets, QtCore, QtGui
ImportError: DLL load failed: The specified module could not be found.
burntchowmein
  • 474
  • 1
  • 4
  • 16

3 Answers3

5

I fixed this error by running the following command on my command prompt:

pip install pyqt5-tools
burntchowmein
  • 474
  • 1
  • 4
  • 16
  • `Because pyqt5-tools (5.15.4.3.0.3) depends on both pyqt5-plugins () and pyqt5-plugins (), pyqt5-tools is forbidden.` Odd – Jonathan Aug 28 '21 at 18:45
1

It looks like the environment variables have become corrupt after the update. In the simplest case, it should just be

Adding your DLL location of python, for example,

(C:\Program Files\Python35\DLLs)

in the path in Environment variables. You can also see some others possible solutions here

AzyCrw4282
  • 7,222
  • 5
  • 19
  • 35
0

Change your interpreter you are using in the IDE i.e. use the same version of python which is running in your cmd prompt. This solved my error.

graj499
  • 87
  • 2
  • 12