【发布时间】:2022-11-26 07:35:41
【问题描述】:
我正在使用 Python 3.9.13。我从终端安装了 scikit-learn:
pip install scikit-learn
然后我尝试使用fetch_openml 下载 mnist 数据集:
from sklearn.datasets import fetch_openml
raw_data = fetch_openml('mnist_784')
这给了我一条很长的错误信息,结尾是:
fetch_openml with as_frame=True requires pandas.
但是,我安装了pandas。所以我更深入地查看了错误消息,发现导致该错误的异常是这样的:
ModuleNotFoundError: No module named '_bz2'
【问题讨论】:
标签: scikit-learn