<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1484058238432_9288">Phile wrote :</div><div id="yui_3_16_0_ym19_1_1484058238432_9288" dir="ltr">>> <span style="font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1484058238432_11107">The executable is created by pip when you install the wheel. I don't know what constraints that imposes.</span></div><div id="yui_3_16_0_ym19_1_1484058238432_9288" dir="ltr"><span style="font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px;"><br></span></div><div id="yui_3_16_0_ym19_1_1484058238432_9288" dir="ltr">Thanks Phil.<br></div><div id="yui_3_16_0_ym19_1_1484058238432_9288"><br></div><div id="yui_3_16_0_ym19_1_1484058238432_9288">I have found a solution :</div><div id="yui_3_16_0_ym19_1_1484058238432_9288"><br></div><div id="yui_3_16_0_ym19_1_1484058238432_9288"><br></div><div id="yui_3_16_0_ym19_1_1484058238432_9288">Create this file :</div><div id="yui_3_16_0_ym19_1_1484058238432_9288">  PathOfYourPython35\Scripts\pyrcc5.bat<br></div><div id="yui_3_16_0_ym19_1_1484058238432_9290">which contains this line :</div><div id="yui_3_16_0_ym19_1_1484058238432_9290">  @"%~dp0\..\python" -m PyQt5.pyrcc_main %1 %2 %3 %4 %5 %6 %7 %8 %9<br></div><div id="yui_3_16_0_ym19_1_1484058238432_9290"><br></div><div id="yui_3_16_0_ym19_1_1484058238432_9290"><br></div><div id="yui_3_16_0_ym19_1_1484058238432_9290">Now, use pyrcc5.bat as you would use pyrcc5.exe</div><div id="yui_3_16_0_ym19_1_1484058238432_9290"><br></div><div id="yui_3_16_0_ym19_1_1484058238432_9290">Cheers.</div><div id="yui_3_16_0_ym19_1_1484058238432_9290"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1484058238432_9291"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Tuesday, January 10, 2017 1:45 PM, Phil Thompson <phil@riverbankcomputing.com> wrote:<br></font></div>  <br><br> <div class="y_msg_container">On 10 Jan 2017, at 12:10 pm, Paul <<a shape="rect" ymailto="mailto:atrepaul@yahoo.com" href="mailto:atrepaul@yahoo.com">atrepaul@yahoo.com</a>> wrote:<div class="yqt9966303823" id="yqtfd07546"><br clear="none">> <br clear="none">> Hi,<br clear="none">> <br clear="none">> <br clear="none">> This is on Windows 7 - 64bit, python 3.5.2.<br clear="none">> PyQt5-5.7.1 is installed by "pip install PyQt5"<br clear="none">> <br clear="none">> We are trying to upgrade from PyQt5-5.3.1 to PyQt5-5.7.1, but pyrcc5.exe is not portable anymore on 5.7.1.<br clear="none">> <br clear="none">> This works all right :<br clear="none">> C:\Python35\Scripts\pyrcc5.exe myResources.qrc -o myResources_rc.py<br clear="none">> <br clear="none">> Then, move the "Python35" directory anywhere else, and try again. Now pyrcc5.exe fails, and displays this message :<br clear="none">> Fatal error in launcher: Unable to create process using '"'<br clear="none">> <br clear="none">> It's a problem because we use a central location for PyQt/Qt on a file server, all Windows client computers have nothing installed on them (it's really useful when we need to upgrade something, there is only one location to modify). <br clear="none">> <br clear="none">> Is there a way to make pyrcc5 portable again ?</div><br clear="none"><br clear="none">The executable is created by pip when you install the wheel. I don't know what constraints that imposes.<br clear="none"><br clear="none">Phil<br><br></div>  </div> </div>  </div></div></body></html>