티스토리 툴바



PY2EXE. py에서 실행파일(exe)로 만드는 방법

Python 2.7 을 설치( http://www.python.org/download/ )하고 그 버전에 맞는 py2exe 를 받자..(전 2.7버전 다운로드 했어ㅛ)
http://sourceforge.net/projects/py2exe/files/py2exe/


설치파일을 만들 test.py 

from distutils.core import setup
import py2exesetup(console=['Target.py'])

test.py 를 이런 내용으로 만들고 Target.py(py -> exe를 할 파일)가 있는곳에 넣는다.
cmd 입력창에서

C:\Python27\python.exe test.py py2exe

이렇게 하면 dist 폴더에 exe 파일이 생성된다!! 
Comment 0 Trackback 2

Trackback : http://fdin.tistory.com/trackback/42 관련글 쓰기

  1. Igre

    Igre | 2012/04/16 10:16 delete

    에프딘의 티스토리 ㅋ ::

  2. herbal incense

    herbal incense | 2012/05/02 17:03 delete

    에프딘의 티스토리 ㅋ ::

Top

prev 1 2 3 4 5 6 7 ... 38 next