How to install xgboost in python on MacOS?

前端 未结 9 858
别那么骄傲
别那么骄傲 2020-12-23 22:19

I am a newbie and learning python. Can someone help me- how to install xgboost in python. Im using Mac 10.11. I read online and did the below mentioned step, but not able to

9条回答
  •  长情又很酷
    2020-12-23 23:11

    All the other ways described here failed in my case. I managed to install by following the official installation described here: http://xgboost.readthedocs.io/en/latest/build.html#building-on-macos

    My system is MacOS Serria so I followed the instruction of "Building on macOS".

    However, instead of "replacing these two lines into(5 or 6 or 7; depending on your gcc-version" w.r.t. the config.mk file, I did:

    export CC = gcc-5
    export CXX = g++-5
    

    Even though gcc-version showed Apple LLVM version 9.0.0.

    After that by following the official instruction of "Python Package Installation" I was able to run the package in Python.

提交回复
热议问题