-
파이썬을 exe 실행 파일로 변환하는 방법(Pyinstaller)파이썬(Python) 2021. 7. 28. 18:28더보기
파이썬을 exe 실행 파일로 변환하는 방법(Pyinstaller)
*.py 파일을 윈도우에서 바로 실행하는 방법을 찾아보니 .exe 실행 파일 확장자로 변경해주는 방법이 있더군요.
Pyinstaller 입니다.공식 사이트 : https://www.pyinstaller.org
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.9, it builds sm
www.pyinstaller.org
Pyinstaller 설치/exe 파일 만들기
더보기Pyinstaller 설치하기
pip install pyinstaller 더보기exe 파일 만들기
pyinstaller --onefile --noconsole 파이썬_파일_이름.py --onefile : 하나의 파일로 만듬 --noconsole : 콘솔창을 띄우지 않음 해당폴더 - dist 폴더에 exe 파일이 생성되었음을 알 수 있습니다. 비주얼스튜디오 코드에서만 실행만하다가 UI 붙여놓고 실행도 해보니 뭔가 프로그램을 만들었다는 느낌이 확 옵니다 ㅎ