Install XGboost

Run one of the following commands in your terminal or Jupyter Notebook:

For pip users:

pip install xgboost

For conda users:

conda install -c conda-forge xgboost


If You're Using Anaconda on Mac (M1/M2)

If you're on an Apple M1/M2 chip, install XGBoost with:

conda install -c conda-forge py-xgboost