PyInstaller를 이용하면 파이썬과 PyQt5로 제작한 GUI 프로그램을 간단하게 실행파일 (exe)로 만들 수 있습니다.
실행파일은 파이썬이 설치되어 있지 않은 pc에서도 프로그램을 실행할 수 있도록 해줍니다.
PyInstaller Quickstart — PyInstaller bundles Python applications
PyInstaller freezes (packages) Python applications into stand-alone executables, under Windows, GNU/Linux, Mac OS X, FreeBSD, Solaris and AIX. PyInstaller’s main advantages over similar tools are that PyInstaller works with Python 3.5—3.7, it builds sm
www.pyinstaller.org
PyInstaller 설치
pip install pyinstaller
실행파일 만들기
pyinstaller qtextbrowser_advanced.py
콘솔창 출력되지 않도록 하기
pyinstaller -w qtextbrowser_advanced.py
실행파일 하나만 생성하기
pyinstaller -w -F qtextbrowser_advanced.py
출처
위키독스
온라인 책을 제작 공유하는 플랫폼 서비스
wikidocs.net
'Python' 카테고리의 다른 글
[Python] time sleep (delay) (0) | 2021.01.03 |
---|---|
[Python] 소켓통신 UDP TCP (0) | 2021.01.03 |