Pyinstaller UnicodeDecodeError: 'utf-8' codec can't decode byte 0x91 in position 8: invalid start byte
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x91 in position 8: invalid start byte
先做修改
\Lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py
src = loader.get_source(partname)
中修改成
try:
src = loader.get_source(partname)
except:
path = loader.get_filename(partname)
src = loader.get_data(path)
引用