<div dir="ltr"><div><p style="clear:both;vertical-align:baseline;line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">


When building/installing PyQt (from source or using <code style="margin:0px;padding:1px 5px;border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif">pip</code>), how do I specify the path to the local Qt5 installation?</p>


<p style="clear:both;vertical-align:baseline;line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">
I built Qt5 from source (<a href="http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.tar.gz" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none" target="_blank">qt-everywhere-opensource-src-5.0.2.tar.gz</a>) with the following command:</p>


<pre style="max-height:600px;width:auto;background-color:rgb(238,238,238);margin-bottom:10px;padding:5px;vertical-align:baseline;line-height:18px;font-size:14px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;margin-top:0px;border:0px">

<code style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif"><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">wget http</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">:</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:gray">//<a href="http://download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.tar.gz" target="_blank">download.qt-project.org/official_releases/qt/5.0/5.0.2/single/qt-everywhere-opensource-src-5.0.2.tar.gz</a></span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
tar </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">xvf qt</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">everywhere</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">opensource</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">src</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(128,0,0)">5.0</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">.</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(128,0,0)">2.tar</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">.</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">gz

cd qt</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">everywhere</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">opensource</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">src</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(128,0,0)">5.0</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">.</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(128,0,0)">2</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">./</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">configure </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">prefix $PWD</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">qtbase </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">opensource </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">nomake tests
make </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">-</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">j </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(128,0,0)">4</span></code></pre>


</div><div><p style="clear:both;vertical-align:baseline;line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">


If I then <code style="margin:0px;padding:1px 5px;border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif">cd</code> into <code style="margin:0px;padding:1px 5px;border:0px;font-size:14px;vertical-align:baseline;background-color:rgb(238,238,238);font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif">qtbase</code> I see:</p>


<pre style="max-height:600px;width:auto;background-color:rgb(238,238,238);margin-bottom:10px;padding:5px;vertical-align:baseline;line-height:18px;font-size:14px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;margin-top:0px;border:0px">

<code style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif"><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">bin</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
dist</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
doc</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
examples</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
imports</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
include</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
lib</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">/</span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">
etc </span><span style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent">...</span></code></pre><p style="clear:both;vertical-align:baseline;line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">


Looking at the PyQt4 <a href="http://pyqt.sourceforge.net/Docs/PyQt4/installation.html" rel="nofollow" style="margin:0px;padding:0px;border:0px;font-size:14px;vertical-align:baseline;background-color:transparent;color:rgb(74,107,130);text-decoration:none" target="_blank">installation instructions</a> I could not find a flag or an option to specify the location of the Qt installation.</p>


<p style="clear:both;vertical-align:baseline;line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;word-wrap:break-word;border:0px;padding:0px">
Is there a way to tell PyQt4 where to find Qt5?</p></div><div>Note: I left a copy of this thread on StackOverflow:</div><a href="http://stackoverflow.com/questions/16154402/building-pyqt-to-work-with-qt5" target="_blank">http://stackoverflow.com/questions/16154402/building-pyqt-to-work-with-qt5</a><br>


<div><br></div><div>Thanks,</div><div><br></div><div>Josh</div></div>