Is there a way to compile a python application into static binary?

前端 未结 5 738
醉酒成梦
醉酒成梦 2020-12-04 05:45

What I\'m trying to do is ship my code to a remote server, that may have different python version installed and/or may not have packages my app requires.

Right now t

5条回答
  •  日久生厌
    2020-12-04 06:28

    You're probably looking for something like Freeze, which is able to compile your Python application with all its libraries into a static binary:

    PyPi page of Freeze

    Python Wiki page of Freeze

    Sourceforge page of Freeze

提交回复
热议问题