Could not build wheels for scikit-learn、failed building wheel for scikit-learn、(PEP 517错误)等错误的解决方法

这一般是文件名过长可能导致编译失败
当安装PyCaret、PaddleX等时, 也许会在Building wheel for scikit-learn (PEP 517) … 处失败, 提示 error: could not create ‘build\bdist.win-amd64\wheel.\sklearn\datasets\tests\data\openml\292\api-v1-json-data-list-data_name-australian-limit-2-data_version-1-status-deactivated.json.gz’: No such file or directory.Could not build wheels for scikit-learn、failed building wheel for scikit-learn、PEP 517错误

这有可能是因为文件名过长导致的.
修改注册表
win+R 输入regedit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem路径下的变量 LongPathsEnabled, 将其置为 1即可.

原文链接:https://blog.csdn.net/qq_45364383/article/details/119653599

你可能感兴趣的:(scikit-learn,python,人工智能,图像处理,pip)