[英]UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 31: ordinal not in range(128) during installing pyramid
When I attempt to install pyramid unto a production server ( CentOS 6.4 ), using the following 当我尝试将金字塔安装到生产服务器(CentOS 6.4)时,请使用以下命令
[~]# env/bin/easy_install pyramid
It will show the following stack trace 它将显示以下堆栈跟踪
http://bpaste.net/show/83631/ http://bpaste.net/show/83631/
The steps that I have taken during installation: 我在安装过程中采取的步骤:
How should I resolve this? 我该如何解决?
The solution to this is really simple 解决方案非常简单
in the terminal of the local machine 在本地机器的终端中
$ pico .bash_profile
at the last line, add in the following: 在最后一行,添加以下内容:
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.