


























When I execute the following python instruction in python shell
>>>import matplotlib.pyplot as plt
error occured and the error message show as follows,
"UnicodeDecodeError: 'ascii' codec can't decode byte 0xea in position 0: ordinal not in range(128)"
Solution:
Before execution of import instruction, add this set of instructions:
>>> import sys
>>> reload(sys)
>>> sys.setdefaultencoding('utf-8')
posted on 2015-03-10 19:03 Gravitonium 阅读(236) 评论(0) 收藏 举报
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。