Build from source


    • It is strongly recommended to install the released version. Try it if other installation methods result in errors.

    • Windows installation currently requires Visual C++ 2019 Build Tools.

    • Training on GPU requires NVIDIA Driver of version 418.xx or higher.

    To install the R package directly from the CatBoost repository:

    1. Install the libc header files on macOS and Linux.

      Depending on the used OS:

      • macOS: xcode-select --install
      • Linux: Install the appropriate package (for example, libc6-dev on Ubuntu)
    2. Run the following commands:

      devtools::install_github('catboost/catboost', subdir = 'catboost/R-package')


    Installation error

    If you use script for installation, try to add the repos parameter to the install.packages('devtools') command.
    Select any repository from the list.

    Example: install.packages("devtools", repos="").