This question was originally asked in askubuntu.com but got no attention so I think maybe this is a better place to ask.
I installed PyQt4 with synaptic.
I’m using Python3 so I need to configure the path for PyQt4 in eclipse, but it seems synaptic only installed PyQt4 for python 2 since I only found relative files and folders under python 2.6 and 2.7.
So how can I make PyQt4 to work with Python 3 and eclipse ?
Thanks.
UPDATE:
I tried to configure it following this post: http://ubuntuforums.org/showthread.php?p=10914908#post10914908
But after following all the instructions without any error occurs in the way, I get error from running this code in python 3.2:
>>> import PyQt4
The error message is :
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named PyQt4
But the strange thing is that the same code results NO error in python 2.7 (I have both 2.7 and 3.2 installed on my machine)
Install packages needed for compiling (I am not sure these all are needed):
Download sources of the latest SIP – sip-4.12.4.tar.gz (Linux, UNIX, MacOS/X source).
Unpack them and enter the directory:
Download the sources of the latest PyQt – PyQt-x11-gpl-4.8.5.tar.gz (Linux, UNIX source), and install it:
Note, that I am launching
python3instead ofpython.