报错信息为:
File "c:\python36\venv\lib\site-packages\jupyter_core\application.py", line 156, in write_default_config
f.write(config_text)
UnicodeEncodeError: 'gbk' codec can't encode character '\xb6' in position 8440: illegal multibyte sequence
查看“jupyter_core\application.py”内容如下:
with open(config_file, mode='w') as f:
f.write(config_text)
改成:
with open(config_file, mode='w', encoding='utf-8') as f:
f.write(config_text)
重新执行,执行成功,不再报错
这是 bug 吗?我要去提个 issue 吗?