操作系统: Red Hat Enterprise Linux 6.3 x86 安装中文语言支持: yum install "@chinese support" 安装完中文支持后,可以在System->Preference->Input Method设置输入法属性. *如果yum无法使用,可重新安装yum并配置yum源: @http://graybull.is-programmer.com/posts/37702.html Redhat Enterprise Linux 6.…
用pandas的pd.read_excel()打开中文名的xlsx,报错,本来以为是xlrd的问题后来发现,是open()函数就报错: “UnicodeEncodeError: 'ascii' codec can't encode characters in position 26-30: ordinal not in range(128)” 但是同样的xlsx在win7下用pd.read_excel()打开正常 用print(locale.getdefaultlocale()) 检查一下编码:…