import matplotlib.pyplot as plt 段错误

解决方法:

import matplotlib as mpl

mpl.use('TkAgg')

import matplotlib.pyplot as plt

然后就可以了

猜你喜欢

转载自blog.csdn.net/u013630299/article/details/84964946