UnicodeDecodeError怎么解决
今天安装了pyinstaller,运行里面的setup.py,出现了错误UnicodeDecodeError:
File "D:\Anaconda\lib\SimpleHTTPServer.py", line 27, in <module>
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "D:\Anaconda\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHand
ler
mimetypes.init() # try to read system mime.types
File "D:\Anaconda\lib\mimetypes.py", line 358, in init
db.read_windows_registry()
File "D:\Anaconda\lib\mimetypes.py", line 258, in read_windows_registry
for subkeyname in enum_types(hkcr):
File "D:\Anaconda\lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal
not in range(128)
这里没有任何的自己代码,单纯的第三方安装出的问题,所以怀疑是环境的问题,但是没有任何的头绪。我python装的是Anaconda1.9.2。