title: Installing PySide on Mac: is there a working method?
body: <p>I may be doing something wrong, but I have been trying to install pyside on Mac 10.12 (Sierra). Here is what I tried (after installing Qt with brew):</p>
  
  <ul>
  <li>With the <a href="https://wiki.qt.io/PySide_Binaries_MacOSX" rel="nofollow noreferrer">precompiled package</a> (1.2.1); fails because of "incompatible package".</li>
  <li>With <code>sudo -H pip install pyside</code> (1.2.4): fails with the following error:</li>
  </ul>
  
  <blockquote>
  <pre><code> Qt QTGUI library not found.
   Qt QTXML library not found.
   Qt QTCORE library not found.
   CMake Error at ApiExtractor/CMakeLists.txt:82 (qt4_add_resources):
    Unknown CMake command "qt4_add_resources".
  </code></pre>
  </blockquote>
  
  <ul>
  <li>With <code>brew install pyside==1.2.2</code> : works successfully but when calling it from a python program, fails with <code>ImportError: dlopen(/Library/Python/2.7/site-packages/PySide/QtCore.so, 2): Libmrary not loaded: libpyside-python2.7.1.2.dylib
  Referenced from: /Library/Python/2.7/site-packages/PySide/QtCore.so
  Reason: unsafe use of relative rpath libpyside-python2.7.1.2.dylib in /Library/Python/2.7/site-packages/PySide/QtCore.so with restricted binary</code></li>
  </ul>
  
  <p>The last one did offer some hope, and I tried <a href="https://stackoverflow.com/questions/38315537/pyside-import-error-mac-os-x-el-capitan-library-not-loaded-rpath-libpyside-cp">PySide import error Mac OS X El Capitan, Library not loaded: @rpath/libpyside.cpython-34m.1.2.dylib</a> . Unfortunately, the explanation was quite elliptic and I ended up breaking things further.</p>
  
  <p>Am I missing something obvious? The fact that the precompiled packages are old and the web doc is not updated, that brew install does not seem to work (and the documentation makes no mention of it) and generally number of questions asked about pyside and the technical complication of the answers do not seem very good signs.</p>
  
  <p>Does someone know what the matter is with PySide's installation on Mac OS, technically? What's the best solution in my particular case? </p>
  
  <p>More generally, is there hope for improvement with PySide on Mac?</p>
  
  <h2>Update (25 Jan 2017): Workaround?</h2>
  
  <p>Since we are waiting for an update from Pyside, is someone willing to take the <strong>challenge of installing 1.2.2 on OS Sierra with brew</strong>, and resolve the "unsafe use of relative  path"? Perhaps propose a step-by-step tutorial?</p>
  
  <p>That might save the day for PySide on Mac... while relieving the time pressure on the Pyside development team?</p>