Advertisement

Python's pyreadline library is having trouble decoding a byte using the 'gbk' codec.

阅读量:

在Windows系统中,当用户于CMD界面输入python命令时,可能会突然出现错误提示。

复制代码
    Python 3.6.12 |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\s

全部评论 (0)

还没有任何评论哟~