ubuntu16.04(liunx) 离线安装 xgboost (anaconda3,anaconda2共存)
2017-05-16 13:50
507 查看
服务器ubuntu 系统同时安装了 anaconda3,anaconda2 ,但服务器没有连接外网,所以 想在python3 环境下安装离线安装xgboost。
主要分2步:
0:进入py3环境 (source activate py3) (具体anaconda3,anaconda2 共存见 http://www.cnblogs.com/zle1992/p/6720425.html)
1.编译xgboost
2.安装xgboost python 包
主要分2步:
0:进入py3环境 (source activate py3) (具体anaconda3,anaconda2 共存见 http://www.cnblogs.com/zle1992/p/6720425.html)
1.编译xgboost
2.安装xgboost python 包
1 编译xgboost
1.1 在联网的电脑上下载 xgboost 编译所需文件。git clone --recursive https://github.com/dmlc/xgboost[/code]
下载好后,把文件复制到Ubuntu系统上。放到/home目录下!
1.2进入xgboost目录,编译。cd xgboost; make -j4
ps:由于时钟同步问题,可能出现 warning: Clock skew detected. Your build may be incomplete.这样的警告,
解决办法:find . -type f | xargs -n 5 touch make clean make2.安装xgboost python 包
有好几种方式,官方推荐下面这种:
2.1 打开~/.bashrcvim ~/.bashrc
2.2 添加路径export PYTHONPATH=~/xgboost/python-package
完成!!!!
参考:
https://xgboost.readthedocs.io/en/latest/build.html#building-on-ubuntu-debian
相关文章推荐
- Ubuntu16.04 安装xgboost(anaconda3)
- Ubuntu16.04 安装xgboost(anaconda3)
- ubuntu16.04 64位 cpu安装tensorflow+theano+keras+caffe+xgboost
- Linux使用经验:Ubuntu 安装xgboost和lightgbm(anaconda3)
- Ubuntu16.04+Anaconda3环境下安装caffe-cpu出现libboost1.55找不到的问题
- Ubuntu 16.04安装CUDA9+Docker CE+NVIDIA-Docker+TensorFlow/XGBoost
- Ubuntu16.04安装XGBoost简明教程
- Ubuntu 16.04安装CUDA9+Docker CE+NVIDIA-Docker+TensorFlow/XGBoost
- Ubuntu16.04安装Anaconda2和Anaconda3
- ubuntu16.04下安装xgboost
- Ubuntu16.04安装xgboost
- Ubuntu 16.04 离线安装 .net core SDK
- Ubuntu16.04下安装sublime text3并配置anaconda插件
- Windows10(64)+anaconda2(python2.7)安装xgboost详细步骤
- ubuntu 安装xgboost
- Ubuntu16.04离线安装vim8.0时ncurses的配置问题
- TensorFlow的安装以及环境配置(ubuntu16.04+1070+Anaconda)
- 在Ubuntu下安装xgboost
- win7 anaconda2 安装xgboost
- ubuntu 16.04 anaconda 4.2.0 安装tensorflow 报错