系统中乱码报错的解决办法

[root@localhost Python-3.7.1]# make && make install
安装中可能遇到Fatal Python error: initfsencoding: Unable to get the locale encoding
LookupError: unknown encoding: GBK这种错误,需要先把系统的编码修改成utf8,再进行安装
[root@localhost Python-3.7.1]# export LANG=zh_CN.UTF-8
[root@localhost Python-3.7.1]# export LANGUAGE=zh_CN.UTF-8
 

猜你喜欢

转载自blog.csdn.net/wyqwilliam/article/details/87930947
今日推荐