2023-06-09 10:14:27,146 Start to load dataset Traceback (most recent call last): File "F:\jqxx\实训\实训6\rl.py", line 12, in <module> faces = fetch_olivetti_faces(data_home="https://www.cl.cam.ac.uk/research/dtg/attarchive/facesataglance.html") File "D:\Users\admin\anaconda3\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "D:\Users\admin\anaconda3\lib\site-packages\sklearn\datasets\_olivetti_faces.py", line 101, in fetch_olivetti_faces data_home = get_data_home(data_home=data_home) File "D:\Users\admin\anaconda3\lib\site-packages\sklearn\datasets\_base.py", line 56, in get_data_home makedirs(data_home) File "D:\Users\admin\anaconda3\lib\os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "D:\Users\admin\anaconda3\lib\os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "D:\Users\admin\anaconda3\lib\os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "D:\Users\admin\anaconda3\lib\os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "D:\Users\admin\anaconda3\lib\os.py", line 213, in makedirs makedirs(head, exist_ok=exist_ok) File "D:\Users\admin\anaconda3\lib\os.py", line 223, in makedirs mkdir(name, mode) OSError: [WinError 123] 文件名、目录名或卷标语法不正确。: 'https:'
时间: 2023-07-21 22:55:49 浏览: 168
这个错误提示表明您在 fetch_olivetti_faces 函数中传递的数据源链接不正确,函数无法识别它作为本地数据源或 URL。请确保您传递的是正确的数据源链接或本地路径。建议您使用本地路径而非 URL。您可以将本地路径作为参数传递给 fetch_olivetti_faces 函数,确保该路径存在并且包含需要的数据文件。
阅读全文