不知道原因,尝试卸载、编译安装均失败。只有这样曲线救国
import matplotlib matplotlib.use("WXAgg",warn=True) import matplotlib.pyplot as plt