2014/10/14
-
Python 프로그램을 실행파일로 만들 때Computer/Programming 2014. 10. 14. 10:36
PyInstaller를 사용하면 편리하다. 현재 3.2.1 https://pyinstaller.readthedocs.io/en/stable/index.html WINDOWS 환경에서 설치는 python -m pip install pyinstaller 실행은 python -m pip PyInstaller gui.py -w --add-data c:\extra_folder;extra --add-data extra.ini;. 과 같이 한다. gui.py는 실행파일 만들려는 파이썬 파일. 옵션은 -w는 console 없애는 것 --add-data는 배포 디렉토리에 추가하고 싶은 폴더나 파일 그러면 dist 폴더 아래에 해당 프로그램이 사용하는 모듈들이 있어서 폴더를 그대로 배포할 수 있다. ---옛날 버전은 (2..