The Python version you use now is missing some libraries that Pyinstaller need.
Can try this as a fix without having to rebuild.
So now the have build
Could make it like this so it use right executable on OS it's on.
Can try this as a fix without having to rebuild.
sudo apt-get install libpython3.7-dev
pyinstaller Wrote:PyInstaller is tested against Windows, Mac OS X, and GNU/Linux. However,So need to build on each platform.
it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows;
to make a GNU/Linux app you run it in GNU/Linux, etc.
So now the have build
hello.py
on two platforms.Could make it like this so it use right executable on OS it's on.
import platform import subprocess if platform.system() == 'Windows': subprocess.run('hello.exe') elif platform.system() == 'Linux': subprocess.run('./hello') else: print('Mac')