ImportError: No module named _tkinter
使用 matplotlib.pyplot 画图报错,使用的代码如下import matplotlib.pyplot as plt报错信息:import _tkinter # If this fails your Python may not be configured for Tk解决办法:import matplotlibmatplotlib.use('agg')import matplotlib.pyplot as plt...