https://blog.youkuaiyun.com/ruyingcai666666/article/details/108042383
降版本到pip install matplotlib==3.2.0
具体原因是因为matplotlib新版本 3.2.0以上需要 freetype版本>=2.3以上,现在通过anaconda或pip等工具在线安装最新freetype版本是2.2.0,版本过低不支持matplotlib新版本 3.2.0以上,如果需要使用最新的matplotlib新版本 3.2.0以上,先在线安装freetype,如pip安装,命令:py -m install freetype-py,然后到https://github.com/ubawurinna/freetype-windows-binaries/tree/master/win64 手动下载2.3以上版本的freetype.dll和freetype.lib 放到你的python安装目录 比如我的安装目录C:\Python\Python37\Lib\site-packages\freetype文件夹下 同时打开raw.py 定位到第30行 更换修改 raw.py文件中filename为 freetype.dll所在路径 filename = 'D:\\xxx\\xxx\\lab\\site-packages\\freetype.dll' 即可,方法二,同楼上说的降低matplotlib版本到3.2.0以下