python遇到UnicodeDecodeError错误
python遇到UnicodeDecodeError错误
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 3134: ordinal not in range(128)
解决方法
vi /etc/profile
按A进入编辑模式并加入以下代码
export LANG='en_US.UTF-8'
export LC_ALL='en_US.UTF-8'
按Esc键退出编辑模式
:wq (保存并退出)
source /
转载
2020-08-09 15:40:14 ·
408 阅读 ·
0 评论