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