프로그래밍

python exe 파일 만들기

▲안전제일▲ 2022. 1. 16. 22:22
반응형

1.  pyinstaller 설치

> pip install pyinstaller

2. exe 파일 생성

# 실행 파일 생성, 필요한 라이브러리는 디렉터리 내에 포함

> pyinstaller test.py 

 

# 모든 파일들을 하나로 합침(exe 용량주의)

> pyinstaller --onefile test.py 

 

# 콘솔창 비활성화
> pyinstaller --noconsole --onefile test.py 

 

# 실행 파일 아이콘 지정

> pyinstaller --icon apple.ico --noconsole test.py 

 

 

반응형