50.Pyinstaller打包时出现:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce...

方法一:

在你打包的命令行中先输入chcp 65001 然后再输入打包命令。

chcp 65001

方法二:

将python包目录下\PyInstaller\compat.py文件中

out = out.decode(encoding)

修改为:

out = out.decode(encoding, errors='ignore')

 

posted @ 2020-11-18 16:00  Ubuntu1804  阅读(993)  评论(0编辑  收藏  举报