Py2exe下载及使用


1) install py2exe
 
根据相应的 python version及 系统位数(32 or 64)选择相应版本
2)
教程:

自我编程:
aim file: new.py
print "hello,world."
raw_input('')# in order to make the window to show more time
convert file: mysetup.py
from distutils.core import setup
import py2exe

setup(console=["new.py"])  #this is the aim file
命令行:
python mysetup.py py2exe
结果:
1)命令行:  ,忽略以上警告
2) 文件夹:
 双击new.exe即可出现想要的效果。







免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM