Python 스크립트를 exe 실행파일로 만들기 Using pyinstaller

horiz.d·2021년 11월 17일
0

파이썬 꿀단지

목록 보기
19/35

1. pyinstaller 설치

(1) cmd 실행
(2) > pip install pyinstaller

2. pyinstaller를 사용해 실행파일 빌드

(1) 타겟파일.py 가 있는 디렉토리로 이동 'cd'
(2-0) > pyinstaller 타겟파일.py		#파일이 분산됨
(2-1) > pyinstaller --onefile 타겟파일.py #파일 하나로
(2-1) > pyinstaller -F 타겟파일.py       #파일 하나로 
(2-2) > pyinstaller -w .\타겟파일.py	#콘솔창 X
(2-3) > pyinstaller -w -F .\타겟파일.py	#Best Case

3. 기타 옵션

이름변경> -n name 

https://taedi.net/11 참고

profile
가용한 시간은 한정적이고, 배울건 넘쳐난다.

0개의 댓글