git clone --recursive https://github.com/dmlc/xgboost mkdir xgboost/my_build cd xgboost/my_build CC=gcc-11 CXX=g++-11 cmake .. make -j4 cd ../python_package /Users/xx/miniforge3/envs/tf/bin/python setup.py install
u must install miniforge for M1,
conda create -n tf python=3.9.5
Run xgboost
In the process of using xgboost, I encountered a small obstacle, that
is, xgboost cannot be run normally on the M1 of the Mac. It needs to be
tossed. The following is the installation process:
Yes, you cannot use the network package to install, you need to
download, compile and install by yourself. Fortunately, the process is
not troublesome: