ydata_profiling ProfileReport - AttributeError:模块“matplotlib.cbook”没有属性“mplDeprecation”

问题描述 投票:0回答:1

我正在尝试在我的数据集上使用 ydata_profiling 中的 ProfileReport。我正在为我的项目使用虚拟环境。 因此,在我的 venv 中,我安装了 pandas 和 ydata_profiling。 然后,我使用以下代码:

import pandas as pd
import numpy as np
from ydata_profiling import ProfileReport

(使用 pd.read_csv 加载 df)

profile = ProfileReport(df)
profile

我收到以下错误:

AttributeError:模块“matplotlib.cbook”没有属性“mplDeprecation”

我已经尝试过以下方法:

  1. 使用 pip uninstall 和 pip install matplotlib 重新安装 matplotlib
  2. 使用 pip uninstall 和 pip install ydata-profiling 重新安装 ydata-profiling
  3. 从我的 ..venv\lib\site-packages 中删除所有 matplotlib 文件夹并使用 pip 重新安装 matplotlib
  4. 升级 pip、matplotlib 和 ydata-profiling

以上均未解决该错误。

关于如何解决此错误还有其他建议吗? 非常感谢!

matplotlib attributeerror
1个回答
0
投票

该问题现已在 GitHub 上报告:https://github.com/ydataai/ydata-profiling/issues/1455

© www.soinside.com 2019 - 2024. All rights reserved.