Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt5: The DLL load failed: the specified module could not be found

I recently installed the PyQt5 module setup for 32-Bit computers on Windows. But when I am trying to run their examples none of then would run. All of the examples provided were having the similar type of error as in the following image. And when I tried to import PyQt5 in the Python shell it just imported correctly.

Enter image description here

I think this shows PyQt is installed successfully.

But when i try to run the examples it shows like:

enter image description here

This is of one example and other examples have different 'no founds'

Facts - Running Windows 7, PyQt5 latest version, Python 3.5, Installed PyQt5 from original site with setup

I know there are several questions of such type, but none helped me because most of them were for Linux.

like image 853
Ahmad Taha Avatar asked Apr 16 '16 15:04

Ahmad Taha


2 Answers

I got the answer to my own question.

When I tried to install it by setup, it did not ran properly. Then I uninstalled the setup and also ran the code in command line pip uninstall pyqt5 and then reinstalled by pip pip install pyqt5.

Then it perfectly ran, but by installing with pip it doesn't provide any examples so for that install the setup in any other directory and copy the examples in the PyQt5 folder. Done!

I think there may be some bug in the setup.

like image 179
Ahmad Taha Avatar answered Oct 23 '22 07:10

Ahmad Taha


I had a similar issue.

Everything worked when I completely uninstalled 32-bit version of Python, installed a 64-bit one, and reinstalled all the packages for amd64, including the PyQt5.

like image 45
ru13r Avatar answered Oct 23 '22 06:10

ru13r