简体   繁体   中英

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

    [~]# env/bin/easy_install pyramid

It will show the following stack trace

http://bpaste.net/show/83631/

The steps that I have taken during installation:

  1. ssh in as account name ( not root )
  2. cd ~
  3. mkdir opt
  4. cd opt
  5. download and install python3.2.3
  6. cd ~
  7. opt/Python-3.2.3/bin/python3.2 distribute_setup.py
  8. opt/Python-3.2.3/bin/python3.2 virtualenv
  9. opt/Python-3.2.3/bin/virtualenv --no-site-packages env
  10. cd env
  11. bin/easy_install pyramid

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 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM