0
I re-setup the Anaconda and wanna come into python interface, then the error cameļ¼
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "F:\Anaconda3\lib\site.py", line 439, in register_readline
readline.read_history_file(history)
File "F:\Anaconda3\lib\site-packages\pyreadline\rlmain.py", line 165,
in read_history_file
self.mode._history.read_history_file(filename)
File "F:\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 0x9a in position 155:
illegal multibyte sequence
Then I open the relevant files, which show
readline.read_history_file(history)
,
self.mode._history.read_history_file(filename)
,
and for line in open(filename, 'r'):
. I do confused and want your help.