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")으로 수정하면 문제를 해결할 수 있다.
'파이썬' 카테고리의 다른 글
Numpy array의 인덱싱과 슬라이싱 (0) | 2021.05.11 |
---|---|
배열의 축(axis) 이해하기 (0) | 2021.05.11 |
넘파이 배열(Numpy array)이 빈 배열인지 확인 (0) | 2021.05.11 |
판다스(Pandas) (0) | 2021.05.11 |
윈도우 환경에서 파이썬 스크립트를 백그라운드 실행 (0) | 2021.05.11 |