nuitka

CustomTkinter

nuitkaとは

nuitkaは一旦C言語にコンパイルしてからEXEファイルを作成するので、pyinstallerよりもEXEファイルの起動速度やファイルの実行速度が早い

nuitka

cd pj/app
pip install nuitka
nuitka xxx.py --onefile --standalone --enable-plugin=tk-inter --windows-console-mode=disable

–onefile … スクリプト実行に関するファイルを1つのexeファイルに纏めてくれる

–standalone … 配布先にpythonがインストールされてなくても動く

–enable-plugin=tk-inter … このオプションがないとexeファイルが起動してもすぐ閉じてしまう

–windows-console-mode=disable … アプリ起動時にコンソール画面を非表示にできる

BACK