개발/python

[python] pyinstaller

xwing 2021. 1. 17. 10:12

using pyinstaller 

 

install

pip install pyinstaller

 

site
https://pyinstaller.readthedocs.io/en/stable/usage.html

 

Using PyInstaller — PyInstaller 4.2 documentation

Making GNU/Linux Apps Forward-Compatible Under GNU/Linux, PyInstaller does not bundle libc (the C standard library, usually glibc, the Gnu version) with the app. Instead, the app expects to link dynamically to the libc from the local OS where it runs. The

pyinstaller.readthedocs.io

 

using

pyinstall [options] python파일경로

 

options

-D, --onedir 실행 파일을 포함하는 단일 폴더 번들 생성 (기본값)
-F, --onefile 단일 파일 번들 실행 파일을 만듭니다.
--specpath DIR 생성 된 사양 파일을 저장할 폴더 (기본값 : 현재 디렉토리)
-n NAME, --name NAME 들 앱 및 사양 파일에 할당 할 이름 (기본값 : 첫 번째 스크립트의 기본 이름)

 

pyinstaller -D test.py

 

안녕~

'개발 > python' 카테고리의 다른 글

[python] Covid19 정보조회  (0) 2021.01.28
[python 기초] 엑셀에 달력출력하기  (0) 2021.01.07
[python 기초] 엑셀에 구구단 출력하기  (0) 2021.01.05