直接再cmd中pip install matplotlib
但是再pycharm中显示
可以在pycharm终端中安装,用镜像安装,不然容易超时:
pip3 install -i https://pypi.doubanio.com/simple/ matplotlib
终端在这里:
应该是电脑有几个python
1、命令行输入 where python
2、确定你安装matplotlib 的python
3、把 pycharm 里的interpretor指向正确的python
run - edit configurations