1

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
  • 406
  • 3
  • 15

2 Answers2

4

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

pip install pyqt5-tools
burntchowmein
  • 406
  • 3
  • 15
  • `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
  • 6,391
  • 5
  • 15
  • 29