Merry Christmas

아래와 같은 파이썬 파일을 만든 후 컴파일 한다.
from distutils.core import setup
import py2exe
setup(
 console=["result.py"]
 #windows=["window.py"] # 윈도우 모드일 때
      )
실행은 python setup.py py2exe 와 같은 형태로 할 수 있다.
from distutils.core import setup
import py2exe
setup(
 options = {"py2exe": {"packages": [encodings"]}},
 console=["result.py"]
      )

 

추가 : 단일파일 컴파일 

http://soooprmx.com/wp/archives/976

 


: