使用旧版本的scikitlearn

2024-04-19 20:58:16 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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

但我得到以下错误:

Failed building wheel for scikit-learn

Command "/anaconda3/bin/python -u -c "import 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" failed with error code 1 in /private/var/folders/x5/t6zy26vd4gq36xgq6yl45p2h0000gn/T/pip-install-7h06grkn/scikit-learn/

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


Tags: installpipvarcodeopenscikitprivaterecord