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,通过

posted on 2014-03-24 09:29  andylau168  阅读(388)  评论(0)    收藏  举报