-1

I need to make an application consisting of exactly one exe file, with resources inside (pictures and fonts). The problem is that I write in pure Python, and I don’t know if there're compilers for Python that can pack resources into exe. Please recommend one if you know.

P.S. It's advisable for the compiler to optimize, i.e. that's doesn't drag all the libraries into exe, but took only necessary ones. I'm very afraid that the compiled executable will slow down.

3
  • This is way too broad for a SO question. What you want is probably not a true compiler, but an embedded Python interpretor. You should google for py2exe and/or pyinstaller for some tools able to build that. BTW, if you want to build a GUI app having resources, PyQt or PySide could also be nice (but heavy...) tools. Commented Oct 20, 2023 at 7:50
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Commented Oct 20, 2023 at 17:12
  • I don’t care how the executable actually works, as long as it’s not too slow. Commented Oct 21, 2023 at 4:51

1 Answer 1

0

Check out this website: https://pyinstaller.org/en/stable/, or Google how to pack images into pyinstaller.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.