Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
1) No need to carry nonsense like this: "How to compile a python project ..."
1.1 Python is an interpreted language and cannot be compiled AND CANNOT !!! It can only pack, but that's another story.
1.2 Pictures can be packed next to you easily and simply.
2) In pyinstaller, if you set the --onefile flag, then you can also set the flag to add a file to the archive, something like this:
pyinstaller --onefile --add-data "logo.jpg;logo.jpg" main.py
pyinstaller --onefile --add-data "imgs\logo.jpg;imgs\logo.jpg" main.py
There is a visual version:
pip install auto-py-to-exe
After installation on the command line:
auto-py-to-exe
And already in the running application, you can add the necessary files to the script file.
PS Don't forget to select - One file for packing into one file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question