安装jupyter notebook 遇到的错误
学数据分析时安装jupyter notebook时遇到的报错如下
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)
之后修改anaconda2/bin/jupyter-notebook
下的代码 添加
import sys
reload(sys)
sys.setdefaultencoding(“utf-8”)
后报错信息如下
[C 16:17:03.140 NotebookApp] Bad config encountered during initialization:
[C 16:17:03.140 NotebookApp] Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.
此时 直接命令行运行
LANG=zn jupyter lab
就能打开jupyter notebook的页面了
以上供大家参考