How can I convert a .py to .exe for Python?

前端 未结 6 1076
清酒与你
清酒与你 2020-11-22 00:55

I\'m trying to convert a fairly simple Python program to an executable and couldn\'t find what I was looking for, so I have a few questions (I\'m running Python 3.6):

6条回答
  •  说谎
    说谎 (楼主)
    2020-11-22 01:02

    I can't tell you what's best, but a tool I have used with success in the past was cx_Freeze. They recently updated (on Jan. 7, '17) to version 5.0.1 and it supports Python 3.6.

    Here's the pypi https://pypi.python.org/pypi/cx_Freeze

    The documentation shows that there is more than one way to do it, depending on your needs. http://cx-freeze.readthedocs.io/en/latest/overview.html

    I have not tried it out yet, so I'm going to point to a post where the simple way of doing it was discussed. Some things may or may not have changed though.

    How do I use cx_freeze?

提交回复
热议问题