python - 使用旧版本的 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?
解决方案
conda install scikit-learn==0.19
工作。
推荐阅读
- ios - 无法连接到 iPhone se2 上的 React-Native 语音通话
- tensorflow - 框架暗网有多少模型?
- python - 机器翻译变压器输出 - “未知”令牌?
- go - 结构体和 GoRoutines,切换实例?
- .net - 是否可以使用 dotnet build/restore 在命令行上设置 TargetFramework?
- sqlite - SQLite 请求特定日期之间的日历事件
- xamarin - Xamarin Android DialogFragment 中的 OnTimedEvent() 如何 Dissmis()?
- hook - 在模式挂钩中向用户显示消息
- go - 构建约束排除所有 Go 文件 go build for amd64 系统
- python - 如何快速下载大量小文件?(不受带宽限制)