获取 olivetti_faces 时出现 jupyter 笔记本错误

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

我想在 jupyter 笔记本上使用 olivetti_faces 数据集。当我运行以下代码时,未下载数据集并出现以下错误:

from sklearn.datasets import fetch_olivetti_faces
faces = fetch_olivetti_faces()

错误:

TimeoutError Traceback(最近调用 最后)文件 C:\ProgramData\Anaconda3\lib\urllib equest.py:1354,在 AbstractHTTPHandler.do_open(self, http_class, req, **http_conn_args)

1353 尝试: -> 1354 h.request(req.get_method(), req.selector, req.data, headers, 1355
1356第1356章 OSError as err: # 超时错误

文件 C:\ProgramData\Anaconda3\lib\htt

python jupyter-notebook keyerror
© www.soinside.com 2019 - 2024. All rights reserved.