zoukankan      html  css  js  c++  java
  • 如何在Mac OSX上安装xgboost

    1、使用pip简单安装

    First, make sure you obtained gcc-5 (newer version does not work with this method yet). Note: installation of gcc can take a while (~ 30 minutes)

    brew install gcc5
    

    You might need to run the following command with sudo if you run into some permission errors:

    pip install xgboost

    看起来很简单是吧,但是出错了,哈哈哈

    Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-basmvt7f/xgboost/

     

    也没查到这问题咋解决

     

    2、换个方法从github上clone源码

    brew install gcc
    git clone --recursive https://github.com/dmlc/xgboost
    cd xgboost

    执行build.sh

    cd python-package; sudo python setup.py install

     

     

  • 相关阅读:
    Matrix Chain Multiplication[HDU1082]
    Color a Tree[HDU1055]
    Piggy-Bank[HDU1114]
    Catching Fish[HDU1077]
    用单位圆覆盖尽量多的点
    LianLianKan[HDU4272]
    Travelling
    求多边形面积
    方格取数(1)
    Pebbles
  • 原文地址:https://www.cnblogs.com/earendil/p/8334782.html
Copyright © 2011-2022 走看看