当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版本可以完美解决上述报错~
相关文章
- 10-02解决AttributeError: module ‘torchvision‘ has no attribute ‘ops‘
- 10-02AttributeError: module 'tensorflow.python.ops.nn' has no attribute 'leaky_relu'
- 10-02完美解决AttributeError: module 'scipy.misc' has no attribute 'imread'报错问题
- 10-02module 'matplotlib.mlab' has no attribute 'normpdf'错误解决办法
- 10-02python文件名不要跟模块名相同,报错AttributeError: 'module' object has no attribute 'Differ'
- 10-02【问题解决方案】AttributeError: module 'pygal' has no attribute 'Worldmap'
- 10-02python – AttributeError:’module’对象没有属性’HOUGH_GRADIENT’,cv.HOUGH_GRADIENT没有解决问题
- 10-02解决module ‘numpy‘ has no attribute ‘array‘问题
- 10-02解决AttributeError: module ‘cv2.cv2‘ has no attribute ‘estimateRigidTransform‘
- 10-02“目标跟踪”代码错误:AttributeError: module ‘cv2.cv2‘ has no attribute ‘TrackerKCF_create‘ 解决