title: How to configure PyQt4 for Python 3 in Ubuntu?
body: <p>This question was originally asked in askubuntu.com but got no attention so I think maybe this is a better place to ask.</p>
  
  <p>I installed PyQt4 with synaptic.</p>
  
  <p>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.</p>
  
  <p>So how can I make PyQt4 to work with Python 3 and eclipse ?</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE</strong>：</p>
  
  <p>I tried to configure it following this post: <a href="http://ubuntuforums.org/showthread.php?p=10914908#post10914908" rel="noreferrer">http://ubuntuforums.org/showthread.php?p=10914908#post10914908</a></p>
  
  <p>But after following all the instructions without any error occurs in the way, I get error from running this code in python 3.2:</p>
  
  <pre><code>&gt;&gt;&gt; import PyQt4
  </code></pre>
  
  <p>The error message is :</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named PyQt4
  </code></pre>
  
  <p>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)</p>