LoginSignup
0
0

More than 1 year has passed since last update.

pyinstaller実行時のエラー

Last updated at Posted at 2023-02-19

pyinstallerの実行時のエラー

これまで何事もなく使えていたが、下記エラーが発生

test.py
use pyinstaller --clean to fix it



File "<string>", line 323
SyntaxError: unexpected character after line continuation character

hello.py(print("hello")のみのファイル)でも同様のエラー
エラー内容としては、
空白"\n"が認識できていないようだった

調べてみても原因不明

【解決策】

test.py
pyinstaller hello.py --onefile

pyinstaller --clean hello.py

--cleanでキャッシュを削除すると他のファイルに関してもすべてexe化することができた。

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