AttributeError: ‘Annotation‘ object has no property ‘FontProperties‘

运行某个项目时出现这样的错误

但是我进入python编辑器发现 matplotlib 里边 有 FontProperties 这个属性

所以猜测是  matplotlib 和 python3.7版本不一致。

所以重新安装环境和包,最后的版本是:

python = 3.6.2

matplotlib = 2.0.2

你可能感兴趣的:(python,matplotlib,开发语言)