title: How can I install PyQt and SIP for python 2.7 on Scientific Linux?
body: <p>I've asked a similar question <a href="https://gis.stackexchange.com/questions/261822/python-plugins-dont-work-on-qgis-2-14-for-scientific-linux-7">here</a>, with no response, but basically, how can I install PyQt and SIP for python 2.7 on Scientific Linux 7?</p>
  
  <p><a href="https://stackoverflow.com/a/14997069/3182496">This</a> answer seemed to get me there, but I'm getting the error </p>
  
  <pre><code>error: ‘QPrinter::PrinterState’ is not a class or namespace
  </code></pre>
  
  <p>(And the same error for <code>QPaintEngine::Type</code>, <code>Qt::WindowFrameSelection</code>, <code>QStyle::SubControl</code>, <code>QValidator::State</code>.)</p>
  
  <p>Any idea how to fix this, or find a better way to install PyQt?</p>
  
  <p>Nearly all the other answers I've seen either relate to python 3 or Ubuntu, so I need a solution that works with python 2.7 on Scientific Linux (or RHEL/CentOS at least).</p>