anaconda 无法启动jupyter notebook

Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.

这个问题一个多月前解决过一次,是因为语言问题导致的.解决起来有点繁琐,这次找到了方法,记录下:

edit /usr/local/anaconda2/lib/python2.7/site.py file, change the function def setencoding line 481 from if 0 to if 1, so it will call sys.setdefaultencoding(encoding)

edit /usr/local/anaconda2/lib/python2.7/site-packages/traitlets/traitlets.py file, change line 2050, from return value.decode('ascii', 'strict') to return value.decode('UTF-8', 'strict')

https://github.com/jupyterlab/jupyterlab/issues/5345

猜你喜欢

转载自www.cnblogs.com/hanxinle/p/11839487.html