当我尝试使用 pip-3.3 安装 Pillow 时,我得到了一个错误,请参阅下面的回溯。
File "/home/samsun/workspace/python/chat_environment/lib/python3.3/site-packages/pip/req.py", line 297, in egg_info_data
data = fp.read()
File "/home/samsun/workspace/python/chat_environment/lib/python3.3/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14439: ordinal not in range(128)
我认为回溯告诉我文件中的某些字符是 Unicode,但 Python 使用 ASCII 来读取文件。
我想更改 python3.3 文件系统编码来解决这个错误;有没有办法改变默认的文件系统编码?