http://xgboost.readthedocs.org/en/latest/build.html#python-package-installation
分两步:
- First build the shared library from the C++ codes (
libxgboost.sofor linux/osx andlibxgboost.dllfor windows).- Exception: for R-package installation please directly refer to the R package section.
- Then install the language packages (e.g. Python Package).
0)安装git:
sudo apt-get install git
1)安装xgboost:
git clone --recursive https://github.com/dmlc/xgboost
如果是未联网的机器,先去https://github.com/dmlc/xgboost下载源码,再手动传到服务器,解压缩等
1)build:
cd xgboost; make -j4如果是新机器,发现g++ not found错误:sudo apt-get install g++,再make。
2)
sudo apt-get install python-setuptools
cd python-package;
sudo python setup.py install
export PYTHONPATH=~/xgboost/python-package
本文档详细介绍了如何在Linux操作系统中分两步安装xgBoost。首先,你需要从源代码构建共享库,然后安装特定语言的包,如Python。确保先安装git,然后按照步骤进行编译和安装。
7万+

被折叠的 条评论
为什么被折叠?



