- 检查了是否有安装matplotlib包
安装成功 - 但是发现程序仍然报错 Unable to import matplotlib
- 使用的是VS code 编写程序,很确定版本这些没有问题,然后开始查找matplotilb安装的位置,发现是在Anaconda上,然后就换了运行方式。
Run current File in Python Interactive Windows
运行成功
Run current File in Python Interactive Windows
运行成功