您的位置:首页 > 编程语言 > Python开发

Use py2exe compile python file into exe file(用py2exe把python文件编译成exe文件)

2013-11-10 11:44 519 查看
用py2exe把python文件编译成exe文件

first: Create a new python file(Please pledge the python version suit the py2exe version) 

(Py2exe download address:http://sourceforge.net/projects/py2exe/files/py2exe)

(if having no access to the download address, please use my temp address:  http://pan.baidu.com/s/1CFbz9)

# mysetup.py
from distutils.core import setup
import py2exe

setup(console=["perWlan.py"])


Tips: perWlan.py is the filename you want to translate into exe file.

Second: Enter the discovery the same as the file mysetup.py
Use cmd python shell command:

>>python mysetup.py py2exe
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: