首页 > 解决方案 > 使用旧版本的 scikit-learn

问题描述

我已经conda 4.5.11安装在我的机器上,Python 3.7.0并且我正在尝试scikit-learn 0.19使用以下过程进行安装:

pip uninstall scikit-learn
pip install scikit-learn==0.19

但我收到以下错误:

scikit-learn 的构建轮子失败

命令“/anaconda3/bin/python -u -c”导入setuptools,tokenize;file ='/private/var/folders/x5/t6zy26vd4gq36xgq6yl45p2h0000gn/T/pip-install-7h06grkn/scikit-learn/setup.py';f=getattr(tokenize, 'open', open)( file );code=f .read().replace('\r\n', '\n');f.close();exec(compile(code, file , 'exec'))" install --record /private/var/folders /x5/t6zy26vd4gq36xgq6yl45p2h0000gn/T/pip-record-eem8zdll/install-record.txt --single-version-externally-managed --compile" 失败,错误代码 1 在 /private/var/folders/x5/t6zy26vd4gq36xgq6yl45p2h0000gn/T/ pip-install-7h06grkn/scikit-learn/

还有一堆警告。如何在安装 python 的 anaconda 中使用旧版本的 sklearn?

标签: pythonpython-3.xscikit-learnpip

解决方案


conda install scikit-learn==0.19工作。


推荐阅读