Python 报错 ‘UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 123: illegal multibyt’

1. Error reporting

UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 123: illegal multibyte

sequence

2. Solutions 

The error report will display the file error and click  subprocess.py 

search encoding

Locate to the specified location and modify this file at about line 614 (back up in advance to avoid problems)

Change  encoding=None to  encoding='utf-8 '

Running again is basically normal operation  

Guess you like

Origin blog.csdn.net/weixin_42131208/article/details/131122511