Anaconda unicode error on command line startup on Windows

前端 未结 1 1403
无人及你
无人及你 2020-12-06 13:33

I got this error when running python from command line on Windows 10:

C:\\Users\\windows> python
Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:3         


        
相关标签:
1条回答
  • 2020-12-06 14:05

    As user metatoaster commented, the python history file contains bytes that cannot be decoded by your system's default encoding and may be deleted. If the file contains commands that you want to keep or review you can take a backup first and try reviewing its contents in a text editor.

    You have a history file that contain characters that cannot be decoded. Remove the history file (POSIX: ~/.python_history, on Windows it might be %userprofile%/.python_history) and see if that problem goes away.

    0 讨论(0)
提交回复
热议问题