使用Python 3.3编译 [英] Compiling with Python 3.3

查看:166
本文介绍了使用Python 3.3编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我先说我最近才开始编程。我不知道如何使用cx_freeze脚本。我不知道如何使命令python在命令行工作。我只是寻找完整和详细的指导如何使.py文件成一个.exe文件,可以工作没有Python。我没有运气与cx_freeze和没有其他似乎与3.3工作。任何人都可以告诉我要开始?

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?

推荐答案

不幸的是,cx_freeze是我能告诉的唯一的方法。

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

也许你只是因为cx_freeze而失败了。在.bat文件中尝试此操作。

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路径很可能是C:\python33。

Python path is most likely C:\python33.

这篇关于使用Python 3.3编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆