본문 바로가기

컴퓨터/Python

Python pyinstaller

1. 설치

pip install pyinstaller

2. 빌드

pyinstaller --onefile your_script.py

--onefile 옵션은 모든 필요한 라이브러리와 의존성을 하나의 실행파일로 묶어준다.

3. 실행시 콘솔창 띄우지 않기

pyinstaller --onefile --noconsole your_script.py
pyinstaller --onefile --windowed your_script.py

'컴퓨터 > Python' 카테고리의 다른 글

Python file  (0) 2023.12.04
Python tkinter  (0) 2023.12.04
Python Collections | 파이썬 콜렉션  (0) 2023.02.04
Python tuple | 파이썬 튜플  (0) 2023.02.01
Python max() | 파이썬 최대값  (0) 2023.02.01