I have a script with Tkinter, which has a background image. How can I compile this script so that the image is embedded in the exe file. What would I have only one .exe file and when I opened it, I immediately got a working program? Now the script does not work as soon as there is no picture near it, or there is no picture in the necessary directory. Maybe there is a command for pyinstaller to compile into one file along with all the files used in the script.

    0