본문 바로가기

프로그래밍/Python

pyinstaller - Python 파이썬 윈도우 실행 파일 (.exe) 만들기

파이썬 파일을 pyinstaller 를 이용하여 윈도우 실행 파일 .exe 만들기 방법.

 

간단한 것만 만들어서 py파일 하나로만 만들었다 

 

pyinstaller -F --onefile -a --windowed --noconsole 파일명.py

 

실행하면 dist 폴더가 만들어지며 폴더 안에 exe 파일이 생성되어 있다.

 

 

 

pyinstaller 가 설치되어 있지 않으면 아래 명령어로 설치해야 한다.

 

pip install pyinstaller

 

 

 

Anaconda 를 사용하는데 아래 경로에 pyinstaller 가 설치된 것을 확인할 수 있다.

 

Anaconda3\Lib\site-packages\PyInstaller

 

 

 

 

반응형