Skip to content

Instantly share code, notes, and snippets.

@devlights
Created March 20, 2019 02:34
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devlights/2ea169b60063d81f0526eceebeb7a8c6 to your computer and use it in GitHub Desktop.
Save devlights/2ea169b60063d81f0526eceebeb7a8c6 to your computer and use it in GitHub Desktop.
[python] PyInstaller で よく指定するオプション

コマンド

pyinstaller xxxx.py --onedir --onefile --noconsole --clean

オプションの意味

  • --onedir or -D
    • 出力を1ディレクトリにまとめる
  • --onefile or -F
    • 出力を1ファイルにまとめる
  • --noconsole or -w
    • コンソールを表示しない
  • --clean
    • ビルド前に前回のキャッシュと出力ディレクトリを削除
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment