【解决问题】解决python安装模块时UnicodeDecodeError
安装模块时,出现报错:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 68: ordinal not in range(128)
解决方案:
C:\Python27\Lib目录下mimetypes.py中添加
1 import sys 2 if sys.getdefaultencoding() != 'gbk': 3 reload(sys) 4 sys.setdefaultencoding('gbk')