为什么我在那个IDLE里头导入matplotlib,结果报错了?
应该是python环境问题,没有装matplotlib库导致,直接在命令行执行:
pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple
等待安装完成就可以了
你没有matplotlib库?