파이썬
pyinstaller, UnicodeDecodeError
디다새
2021. 5. 11. 13:45
pyinstaller로 실행파일을 만들던 중 "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 145: invalid continuation byte" 에러가 발생한 경우,
Error when using pyinstaller: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff
I have an issue when i compile a PyQt code with pyinstaller. I use this line to compile: c:\Anaconda3\Scripts\pyinstaller.exe -y -F --distpath="." MyQt.py then I get this error message: F...
stackoverflow.com
Python\Lib\site-packages\Pyinstaller\compat.py에서
out = out.decode(encoding)이 try-exception문에 있는데, 이 문장을
out = out.decode(encoding, errors='ignore') 또는
out = out.decode(encoding, "replace")으로 수정하면 문제를 해결할 수 있다.