以下の内容はhttps://a1026302.hatenablog.com/entry/2021/10/28/132058より取得しました。


python3.10 で pyinstaller をインストールすると _bootlocale というモジュールがないといわれる場合の対応

python3.10 で pyinstaller をインストールするとそのままビルドすると "_bootlocale" というモジュールがないというエラーになったためその時の対応方法をここにメモします。

症状

エラー

以下のコマンドを実行すると、処理の途中でエラーになってしまいます。

C:¥Users¥{xxxx}¥Desktop¥test> pyinstaller test.py --onefile
 ・
 ・
 ・
ImportError: No module named _bootlocale

環境

  • OS: mac
  • python3.10

回避策

Python3.10の互換性の問題のようです。
pyinstaller をインストール後に、3.10サポートをインストールする。

pip install pyinstaller
pip install https://github.com/rokm/pyinstaller/archive/refs/heads/python-3.10.zip



以上の内容はhttps://a1026302.hatenablog.com/entry/2021/10/28/132058より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14