找不到字符集
找不到字符集
#操作系统/Linux #操作系统
终端报错:
1 | locale: Cannot set LC_CTYPE to default locale: No such file or directory |
Jupyter notebook 报错:
1 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 0 |
解决方法:
1 | apt-get update |
设置环境变量
1 | export LANG=zh_CN.UTF-8 |
之后重启 jupyter 即可
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.