ubuntu16.04安装jupyter
配置:ubuntu16.04, python2.7
pip install jupyter
出现错误:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128).
网上的解决办法大多是把python2.7换成python3,但是我不想换(个人原因),于是参考https://github.com/jupyter/notebook/issues/4166#issuecomment-454474600
解决办法:
终端输入:LANGUAGE=en_US
,然后回车
再输入:jupyte notebook
出现问题:
[C 23:35:59.141 NotebookApp] Running as root is not recommended. Use --allow-root to bypass.
解决办法:jupyter notebook --allow-root
给它root权限。
完美解决!!