[python]安装easy_install等时候的编码错误
文章目录
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
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论