Compiling with Python 3.3

2019-02-25 18:43发布

问题:

Let me start by saying I have only very recently started programming. I don't know how to use the cx_freeze script. I don't know how to make the word 'python' work in commandline. I am just looking for complete and detailed directions on how to make a .py file into a .exe file that can work without Python. I haven't had luck with cx_freeze and nothing else seems to work with 3.3. Can anyone tell me wher to start?

回答1:

Unfortunately, cx_freeze is the only way to do it as far as I can tell.

Perhaps you are just having bad luck with cx_freeze. Try this in a .bat file.

@echo off
<python path>\python <python path>\scripts\cxfreeze <script .py file>
exit

Python path is most likely C:\python33.