How to compile python with PyInstaller in Linux
<p>I am using <code>Python 3.5.2</code> , <code>PyQt 5.7</code> , <code>PyInstaller 3.2</code> and I'm in Linux</p>

<p>I can compile file.py with : <code>pyinstaller file.py</code></p>

<p>but when I run the binary file in Build folder it returns:</p>

<p><code>Error loading Python lib '/home/arash/build/file/libpython3.5m.so.1.0': /home/arash/build/file/libpython3.5m.so.1.0: cannot open shared object file: No such file or directory</code></p>

<p>Where is the python library (.so file) to copy inside binary file or PyInstaller flag for copy library file?</p>

<p>If this is just about the location of that .so; see here:</p>

<pre><code>/usr/lib/python3.5 $ find . -name "*.so" | grep libpython
./config-3.5m-x86_64-linux-gnu/libpython3.5.so
./config-3.5m-x86_64-linux-gnu/libpython3.5m.so
</code></pre>

<p>Another way to find it would be by running </p>

<pre><code>&gt; locate libpython3.5m.so
/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/libpython3.5m.so
</code></pre>

<p>...</p>

<p>In other words: it should be part of the python3.5 installation of your system. Probably you can just copy it from there for further experiments.</p>

python linux python-3.x pyqt pyinstaller