Python convert a Tkinter script to an exe application

Viewed 43

I'm designing a Tkinter app in VsCode. When I convert it into a desktop app by using the cxfreeze method from py-auto-to-exe, they raise errors:

  1. msi file cannot install in the system
  2. if install cannot show in the system
  3. .exe file can run in my system but not in other systems: python error is raised
1 Answers

You should use pyinstaller.

Then run in cmd pyinstaller [your main file] -D --clean and run the exe file. It won't work if there are errors in your code.

Related