【bug解决】python更新安装时报错gbk编码错误UnicodeDecodeError: 'gbk' codec can't decode byte

C:\Users\DELL>python
Python 3.6.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 20 2017, 12:30:02) [MSC v.1900 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.
Failed calling sys.interactivehook
Traceback (most recent call last):
File “D:\Anaconda3\lib\site.py”, line 418, in register_readline
readline.read_history_file(history)
File “D:\Anaconda3\lib\site-packages\pyreadline\rlmain.py”, line 165, in read_history_file
self.mode._history.read_history_file(filename)
File “D:\Anaconda3\lib\site-packages\pyreadline\lineeditor\history.py”, line 82, in read_history_file
for line in open(filename, ‘r’):
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x88 in position 7: illegal multibyte sequence

【bug解决】python更新安装时报错gbk编码错误UnicodeDecodeError: 'gbk' codec can't decode byte_第1张图片
处理方法:
【bug解决】python更新安装时报错gbk编码错误UnicodeDecodeError: 'gbk' codec can't decode byte_第2张图片
【bug解决】python更新安装时报错gbk编码错误UnicodeDecodeError: 'gbk' codec can't decode byte_第3张图片

你可能感兴趣的:(python使用)