技术笔记
本博客记录踩坑脱坑、早年知识归纳. 新博客常常更新: https://hanxinle.github.io

导航

 

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

 

posted on 2019-11-12 05:48  九品加  阅读(2459)  评论(0编辑  收藏  举报