(base) C:\Windows\system32>python
Python 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Type "help", "copyright", "credits" or "license" for more information.
Failed calling sys.interactivehook
Traceback (most recent call last):
File "D:\Software\Anaconda\lib\site.py", line 449, in register_readline
readline.read_history_file(history)
File "D:\Software\Anaconda\lib\site-packages\pyreadline\rlmain.py", line 165, in read_history_file
self.mode._history.read_history_file(filename)
File "D:\Software\Anaconda\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 0x80 in position 89: illegal multibyte sequence
看报错是因为编码格式错误'gbk' codec can't decode byte 0x80,你的编辑器的编码格式应该使用utf-8