title: How can I install PyQT4 for Python 2.7?
body: <p>I am trying to install PyQT4 on Python 2.7.9, I am on Mac OS X, so i tried installing it via Homebrew and Macports, unfortunately non of them seemed to work.</p>
  <p>This is what I tried:</p>
  <pre><code>brew install python qt pyqt pyside pyside-tools
  </code></pre>
  <p>also tried:</p>
  <pre><code>brew install PyQT4
  </code></pre>
  <p>On Macports:</p>
  <pre><code>sudo port install py27-pyqt4
  </code></pre>
  <p>No matter what I did, I was getting this error:</p>
  <pre><code>&gt;&gt;&gt;&gt; import PyQT4
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  ImportError: No module named PyQT4
  </code></pre>
  <p>What can be the problem? Do I need to set env path for PyQT?</p>