Python 3.7.6 (default, Jan  8 2020, 20:23:39) [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 "C:\ProgramData\Miniconda3\envs\---\lib\site.py", line 439, in register_readline
    readline.read_history_file(history)
ine 165, in read_history_file    self.mode._history.read_history_file(filename)
  File "C:\ProgramData\Miniconda3\envs\---\lib\site-packages\pyreadline\lineeditor\history.py", line 82, in read_history_file    for line in open(filename, 'r'):UnicodeDecodeError: 'cp949' codec can't decode byte 0x8f in position 281: illegal multibyte sequence

 

Solution: edit history.py

line 82: for line in open(filename, 'r'): => for line in open(filename, 'r', encoding='UTF-8'):

'LANGUAGE > Python' 카테고리의 다른 글

Anaconda Environment Restore based on Revision List  (0) 2020.08.25
Setting for UNDO in PyCharm  (0) 2020.08.20
Loop at exact time intervals  (0) 2019.09.11
Statistical Visualization or Data Visualization  (0) 2019.08.23
Python Tutorials  (0) 2019.08.23

+ Recent posts