Reputation: 11
I tried to download PyQt4 however it no lomger appears to be available, so I downloaded the nearest thing to it that I could find PyQt-win-gpl-4.8.4. The problem is when I try to follow the examples in "Rapid GUI programming with Python and QT" i cannot use some of the imports e.g. from PyQt4.QtCore import * gives me the following Error (copied from IDLE):
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
`import sys
`import time
`from PyQt4.QtCore import *
**Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
from PyQt4.QtCore import *
ImportError: DLL load failed: The specified procedure could not be found.
>>>**
Upvotes: 0
Views: 2673
Reputation: 3288
As far as I know you could just intall pyqt4 with either:
pip install pyqt4
or
easy_insatll pyqt4
or
http://www.riverbankcomputing.co.uk/software/pyqt/download
-> under Binary Packages choose the one that correspondends to your python version and system
for you this schould be the right one: pyqt4 py2.7 32bit
Upvotes: 2
Reputation: 90316
You downloaded a source package, so you'd have to compile everything. Try the binary package at the bottom of Riverbank's page. As you have python 2.7 on a 32bit system, you want to download PyQt-Py2.7-x86-gpl-4.8.4-1.exe
.
Upvotes: 3