title: Python 2.7 cannot import PyQt4
body: <p>I've upgraded to Python 2.7 from Python 2.6 on Ubuntu Maverick Meerkat (10.10) and I'm unable to import PyQt4.</p>
  
  <pre><code>austin@gerald:~$ python2.7
  Python 2.7.0+ (r27:82500, Sep 15 2010, 18:04:55) 
  [GCC 4.4.5] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import PyQt4
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named PyQt4
  </code></pre>
  
  <p>I installed both Python 2.7 (python2.7) and PyQt4 (python-qt4) from the Ubuntu repositories. I installed PyQt a while back, but I installed Python 2.7 recently. </p>
  
  <p>If I try Python 2.6 (since it's shipped with Ubuntu, the command is simply <em>python</em>), it works perfectly. Watch:</p>
  
  <pre><code>austin@gerald:~$ python
  Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) 
  [GCC 4.4.5] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import PyQt4
  </code></pre>
  
  <p>I know what the problem is: the PyQt4 modules are accessible by Python 2.6 but not 2.7. My question is, how do I get Python 2.7 to find the PyQt4 module(s)? Help!</p>
  
  <p><em>Note: sorry if this belongs in Super User, I was just programming when I encountered this problem.</em></p>