公众号专注于人工智能、大数据、社会热点等相关领域,欢迎关注公众号!
安装Xgboost方法
最近小编想安装一下xgboost的包,用python pip install xgboost 安装有问题,今天分享一个易用的方向,包括三大主流操作系统的,其他系统的没有环境,暂时不列举。
以mac 为例:
git clone –recursive http://github.com/dmlc/xgboost cd xgboost; cp make/minimum.mk ./config.mk; make -j4 cd python-package; sudo python setup.py install
以ubuntu为例
git submodule init git init git submodule init git submodule update git clone –recursive https://github.com/dmlc/xgboost cd xgboost make cd python-package/ python setup.py install –user (可能会有报错,根据报错日志进行修改 cd .. ./build.sh git submodule update –init –recursive — rabit git submodule update –init –recursive — dmlc-core make cd python-package/ python setup.py install –user )
以win7为例
安装64位git(安装过程都使用default settings) git是什么:gitHub是一个面向开源及私有软件项目的托管平台,因为只支持git 作为唯一的版本库格式进行托管。 安装64位的mingw MinGW一个可自由使用和自由发布的Windows特定头文件和使用GNU工具集导入库的集合。简单的说就是一种独立的编译器。 修改环境变量:环境变量path中加入mingw文件夹下的bin文件夹路径,例如我加入path环境变量C:\Program Files\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev0\mingw64\bin。 git clone –recursive https://github.com/dmlc/xgboost cd xgboost git submodule init git submodule update cp make/mingw64.mk config.mk cd python-package python setup.py install
本文【boost库安装 ubuntu】由作者: 乐观锁 提供,本站不拥有所有权,只提供储存服务,如有侵权,联系删除!
本文链接:https://www.cuoshuo.com/blog/4182.html