matplotlib error – no module named tkinter 2020/12/12 | 博客 | 评论(0) | 阅读(41) 文章目录 1 报错 2 解决办法 1 报错 尝试在linux上通过Pycharm IDE使用matplotlib包。当我运行此代码时: from matplotlib import pyplot 结果报错: ImportError: No module named 'tkinter' 2 解决办法 ubuntu的系统: sudo apt-get install python3-tk 或者,如果你是centos的服务器: sudo yum inst...