level 3
Failed calling sys.__interactivehook__
Traceback (most recent call last):
File "H:\anaconda3\lib\site.py", line 439, in register_readline
readline.read_history_file(history)
File "H:\anaconda3\lib\site-packages\pyreadline\rlmain.py", line 165, in read_history_file
self.mode._history.read_history_file(filename)
File "H:\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 0x90 in position 683: illegal multibyte sequence
2019年05月10日 06点05分
2
level 3
已经尝试重装anaconda但是没用
卸载pyreadline模块但是报错
(base) X:\Users\wangc>pip uninstall pyreadline
Cannot uninstall 'pyreadline'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
2019年05月10日 06点05分
3
level 1
你好:
可以 进入到该目录:Anaconda3\Lib\site-packages\pyreadline\lineeditor ,
history.py文件的第82行,修改如下:
for line in open(filename, 'r',encoding='utf-8'):
在原有的open函数里 新增了一个参数选项encoding='utf-8'
就可以解决了
2019年08月09日 08点08分
8
完美,这是anaconda的bug
2019年08月21日 09点08分
level 1
Error processing line 7 of D:\Anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "D:\Anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
这个应该怎么解决呀?求大神指点
2020年09月24日 07点09分
16
请问这个问题你解决了吗?我遇到了一样的问题
2022年08月13日 20点08分