xgboost command not found

In this troubleshooting guide we learn how to fix xgboost command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

xgboost: command not found

or when using sudo you get the following error message

sudo: xgboost: command not found

Solutions to xgboost: command not found

How To Fix xgboost: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu xgboost is provided by xgboost package.

xgboost is:

XGBoost is an optimized distributed gradient boosting library designed to be highly efficient, flexible and portable. It implements machine learning algorithms under the Gradient Boosting framework. XGBoost provides a parallel tree boosting (also known as GBDT, GBM) that solve many data science problems in a fast and accurate way. The same code runs on major distributed environment (Kubernetes, Hadoop, SGE, MPI, Dask) and can solve problems beyond billions of examples.

This package contains the xgboost binary executable.

To fix this problem, we can install more using the command below.

sudo apt-get -y install xgboost

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install xgboost.

sudo apt -y install xgboost

Or if you have aptitude installed you can use the following command.

sudo aptitude install xgboost

Summary

In this tutorial we learn how to fix xgboost command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.