当import matplotlib.pyplot as plt
时,
报错显示AttributeError: module 'matplotlib' has no attribute 'get_data_path'
检查了一下目前matplotlib的版本是3.4.3,出现包导入错误可能是系统或package升级的原因,多尝试一下降低package的版本就好。
试了一下3.3.1 和3.3.4版本,最后3.3.4版本可以完美解决上述报错~
Python解决AttributeError: module ‘matplotlib‘ has no attribute ‘get_data_path‘问题
最新推荐文章于 2024-07-29 14:37:54 发布