No such file or directory: 'connect.jpg' in pyinstaller standalone exe code example Example: generate spec file using pyinstaller pyi-makespec [--onefile] main.py