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

 

anaconda 无法启动jupyter notebook

相关文章:

  • 2021-09-29
  • 2021-12-14
  • 2021-08-23
  • 2021-04-15
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2020-02-01
猜你喜欢
  • 2021-06-08
  • 2021-04-19
  • 2021-06-01
  • 2021-09-12
  • 2021-10-25
  • 2022-01-06
  • 2022-01-09
相关资源
相似解决方案