错误:Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 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 “F:Anaconda3libsite.py”, line 439, in register_readline
readline.read_history_file(history)
File “F:Anaconda3libsite-packagespyreadlinerlmain.py”, line 165, in read_history_file
self.mode._history.read_history_file(filename)
File “F:Anaconda3libsite-packagespyreadlinelineeditorhistory.py”, line 82, in read_history_file
for line in open(filename, ‘r’):
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xaf in position 173: illegal multibyte sequence
解决方法:D:Anaconda3Libsite-packagespyreadlinelineeditorhistory.py 第82行:
将:for line in open(filename, ‘r’)
改为:for line in open(filename, ‘rb’)
改后保存即可
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)