Objective:
Before has been installed system with the Chinese, installed a English to play, the result of writing python when the tragedy, can not input Chinese, can not display, so think can be changed to Chinese, the following is the steps
[Email protected] python]# locale-a|grep-i Zh_cn.utf8//view current locale
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/31/wKioL1eIT8SCzT3kAAAL7-iKGo8879.png "title=" Sogou 20160715105055.png "alt=" Wkiol1eit8sczt3kaaal7-ikgo8879.png "/>
[email protected] python]# Yum grouplist | Grep-i Chinese//See if the warehouse has a Chinese bag
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/84/31/wKioL1eIT9OQeWX2AAAN6fEnDEk680.png "title=" Sogou 20160715105120.png "alt=" Wkiol1eit9oqewx2aaan6fendek680.png "/>
[[email protected] python]# yum groupinstall chinese-support//install Chinese Language Pack
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/84/31/wKiom1eIUCXSKdZnAAAKQIv-RvQ834.png "title=" Sogou 20160715105309.png "alt=" Wkiom1eiucxskdznaaakqiv-rvq834.png "/>
[[email protected] python]# echo $LANG//view current locale
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/84/31/wKioL1eIUHTBeob1AAAJho5s2Xg755.png "title=" Sogou 20160715105430.png "alt=" Wkiol1eiuhtbeob1aaajho5s2xg755.png "/>
[[email protected] python]# Lang=zh_cn.utf8//temporary setting of Chinese environment
[[email protected] python]# echo $LANG//view current locale
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/84/31/wKioL1eIUl6y9Pz1AAAQyQtgdiQ292.png "title=" Sogou 20160715105640.png "alt=" Wkiol1eiul6y9pz1aaaqyqtgdiq292.png "/>
[[email protected] python]# vim/etc/sysconfig/i18n//permanently set Chinese environment
Lang= "Zh_cn.utf8"
After this step, it has been set to a Chinese environment
This article is from the "Court of the Odd Tree" blog, please be sure to keep this source http://zhangdl.blog.51cto.com/11050780/1826623
Remember to modify the Linux system language