How do I compile a PyQt script (.py) to a single standalone executable file for windows (.exe) and/or linux?

后端 未结 6 1465
时光说笑
时光说笑 2020-12-12 15:01

I started to fiddle with PyQt, and made a \"beautiful\" script from the pyqt whitepaper example app (pastebin)

It works perfectly in Windows and Linux (with qt envir

6条回答
  •  情话喂你
    2020-12-12 15:36

    You may want to check out cx_freeze. It claims to create executables which are "cross platform and should work on any platform that Python itself works on."

    I came across it in exploring the moneyGuru package which uses PyQt. I downloaded the moneyguru.exe file to my Windows XP system, executed it, and it worked fine on Python 3.2.

    You can clone the hg repo from here to see how it.s done.

提交回复
热议问题