windows安装easy_install出现以下错误

  UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in     position 1: invalid start byte
  Something went wrong during the installation.
  See the error message above.

解决办法,设置python编码为 GBK,

如:新建

sitecustomize.py

内容如下:

# encoding=utf8
import sys

reload(sys)
sys.setdefaultencoding('gbk') 

放到 Python27/Lib


RioDream
126 声望14 粉丝