I am trying to generate a single file executable using a pyinstaller for a python based GUI. The GUI contains images and a lot of python files in different folder. I generated the executable by the below command in command prompt:
pyinstaller --onefile --windowed --onedir --icon=someFigure.ico main_window.py
After excecuting the below command, a dist folder is created. A main_window folder is created inside dist folder. In the main_window folder, I had put all my images and extra python files folder. I included the libraries from site-packages folder. When I click the main_window.exe created inside the main_window folder, which is inside dist folder, the GUI works well. But I need a single file executable( for example as generated by visual studio for C# WPF GUIs). What should I do? This is turning out to be difficult problem for me? Please guide.