安裝setuptool遇到的問題
執行python ez_setup.py 時遇到 File "C:\Python27\lib\mimetypes.py", line 249, in enum_types ctype = ctype.encode(default_encoding) # omit in 3.x! UnicodeDecodeError: 'ascii' codec can't decode byte 0xa4 in position 9: ordinal not in range(128) Something went wrong during the installation. See the error message above. 參考: http://blog.csdn.net/u011515122/article/details/17996993 修改 C :\Python27\Lib\mimetypes.py if sys.getdefaultencoding() != 'gbk' : reload(sys) sys.setdefaultencoding( 'gbk' ) default_encoding = sys.getdefaultencoding() 找到default_encoding = sys.getdefaultencoding()在之前加入 if sys.getdefaultencoding() != ' big5 ': reload(sys) sys.setdefaultencoding(...