ctype = ctype.encode(default_encoding) # omit in 3.x! |
|
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 9: ordinal not in range(128) |
这个是python2.7当中的一个bug,解决办法:
1.参考:http://bugs.python.org/review/9291/diff/1663/Lib/mimetypes.py
2.你可以注释掉 mimetypes.py中 ctype = ctype.encode(default_encoding) 那部分代码,重新执行python ez_install.py,通过
浙公网安备 33010602011771号