阿里服务器CentOS6.5 如何安装xgboost 0.6

来源:互联网 发布:linux下c ide 编辑:程序博客网 时间:2024/06/04 19:09

1.如果想看xgboost 0.6如何在win7 64位下如何安装的同学,请移步

2.如果在安装的过程中出现了gcc版本过低(gcc 4.4.7)的错误

centos error: unrecognized command line option "-std=c++11"

,请移步

一,Anaconda的安装
1.首先,进官网
下载这个
这里写图片描述

安装

bash  Anaconda2-4.3.1-Linux-x86_64.sh

2.修改 /etc/profile

# /etc/profile# System wide environment and startup programs, for login setup# Functions and aliases go in /etc/bashrcexport PATH=/root/anaconda2/bin:$PATH

保存退出

source /etc/profile;python

可以看到Python版本已经切换过来了
这里写图片描述
二,gcc 4.4.7版本升级
移步

三,xgboost安装

进官网

安装git

yum install git

执行

git clone --recursive https://github.com/dmlc/xgboostcd xgboost

编译

make -j4

安装

cd python-packagepython setup.py installyum install python-setuptools

完成
这里写图片描述

1 0
原创粉丝点击