0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

pyintallerで起きたエラー文の解決[超簡潔]

Last updated at Posted at 2024-02-23

PC環境

  • Windows11
  • PowerShell 7 Preview
  • Python 3.12.2
  • Pyinstaller 6.4.0 (変更前)
  • Pyinstaller 5.13.2 (変更後)

pyinstallerのインストールとバージョンの確認

python -m pip install pyinstaller
python -m PyInstaller -v
# 6.4.0

実行ファイルの作成

下記のコマンドで問題なく実行ファイルは出力される。

python -m PyInstaller .\test.py
python[test.py]
import tkinter
tkinter._test()

コンソールを開かずにGUIを表示する

この場合はpyinstallerのバージョンを下げないとうまく処理されない。

pip uninstall pyinstaller
pip install pyinstaller==5.13.2
python -m PyInstaller -v
# 5.13.2

それで下記を実行するとうまく処理されるはずである。

python -m PyInstaller --noconsole .\test.py

参考文献

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?