<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<p>Hi, all:<br>
</p>
<p><br>
</p>
<p>After successfully downloaded and built <b>PyQt5</b>, I'm trying
to install <b>PyQt5_gpl</b> with the command <b>make install</b>,
but meet the following <b>ERROR</b> messages:</p>
<p><br>
</p>
<p><i>/opt/Qt/Current/gcc_64/bin/qmake -install qinstall -exe
....../PyQt5_gpl-5.12.1/PyQt5.api
/opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api</i><i><br>
</i><i>Error copying ....../PyQt5_gpl-5.12.1/PyQt5.api to
/opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api: Cannot create
/opt/Qt/Current/gcc_64/qsci/api/python/PyQt5.api for output</i><i><br>
</i><i>Makefile:4266: recipe for target 'install_qscintilla_api'
failed</i><i><br>
</i><i>make: [install_qscintilla_api] Error 3 (ignored)</i><i><br>
</i><i>/usr/bin/python ....../PyQt5_gpl-5.12.1/mk_distinfo.py ""
/usr/lib/python3/dist-packages/PyQt5-5.12.1.dist-info
installed.txt</i><i><br>
</i><i>Traceback (most recent call last):</i><i><br>
</i><i> File "....../PyQt5_gpl-5.12.1/mk_distinfo.py", line 108,
in <module></i><i><br>
</i><i> fn_f = open(fn, 'rb')</i><i><br>
</i><i>FileNotFoundError: [Errno 2] No such file or directory:
'/usr/lib/python3/dist-packages/PyQt5/QtCore.so'</i><i><br>
</i><i>Makefile:4275: recipe for target 'install_distinfo' failed</i><i><br>
</i><i>make: *** [install_distinfo] Error 1</i><i><br>
</i><i><br>
</i><i>**** Installation failed. Aborting package creation.</i><i><br>
</i><i><br>
</i><i>Restoring overwritten files from backup... FAILED!</i><br>
</p>
<p><i>Cleaning up...OK</i><i><br>
</i><i><br>
</i><i>Bye.</i><i><br>
</i></p>
<p><i><br>
</i></p>
<p><b>I actually have Qt installed under /opt/Qt:</b></p>
<p><i><br>
</i></p>
<p><i>➜ python ls</i><i><br>
</i><i>➜ python pwd</i><i><br>
</i><i>/opt/Qt/Current/gcc_64/qsci/api/python</i><br>
</p>
<p><br>
</p>
<p>I wonder if it has something to do with <b>PYTHONPATH</b> ? <br>
</p>
<p><i>Most of my Python packages are installed via <b>pip</b> under
<b>~/.local/lib/python3.6/site-packages</b><br>
</i></p>
<p><i>instead of <b>/usr/lib/python3/dist-packages/</b></i></p>
<p><i><br>
</i></p>
<p>Cheers</p>
<p>Pei<i><br>
</i></p>
<p><br>
</p>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
Mr. Nobody
Welcome to Longer Vision Technology <a class="moz-txt-link-freetext" href="https://www.longervision.ca">https://www.longervision.ca</a>
</pre>
</body>
</html>