我已经在我的机器上安装了conda 4.5.11
和Python 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的旧版本?在
conda install scikit-learn==0.19
起作用了。在相关问题 更多 >
编程相关推荐