解决方法 pip uninstall matplotlib pip install matplotlib==3.2.2 问题解析 这是个由版本导致的bug哈 参考链接 ImportError Cannot import name ‘warnings’ from 'matplotlib.dates