'No module named 'PyQt4'
I'm trying to install PyQt4 on windows but it doesn't work and as a result I get this error
from PyQt4.QtGui import *
from PyQt4.QtCore import *
Solution 1:[1]
Here are Windows wheel packages - Python Windows Binary packages - PyQt
In the filenames cp27 means C-python version 2.7, cp35 means python 3.5, etc.
Make sure you grab the correct Windows wheel file (python version, 32/64 bit), and then use pip to install it - e.g:
pip install PyQt4-4.11.4-cp35-none-win_amd64.whl
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Brain Hong |
