From 4fd95272c8c07af078cd3ab2f497949b181acb07 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Sat, 25 Apr 2020 15:50:30 -0700 Subject: [PATCH] Instruct Mac users to install libomp (#5606) --- python-package/xgboost/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py index bf38f6001..6ea735a16 100644 --- a/python-package/xgboost/core.py +++ b/python-package/xgboost/core.py @@ -159,8 +159,9 @@ def _load_lib(): 'XGBoost Library ({}) could not be loaded.\n'.format(libname) + 'Likely causes:\n' + ' * OpenMP runtime is not installed ' + - '(vcomp140.dll or libgomp-1.dll for Windows, ' + - 'libgomp.so for UNIX-like OSes)\n' + + '(vcomp140.dll or libgomp-1.dll for Windows, libomp.dylib for Mac OSX, ' + + 'libgomp.so for Linux and other UNIX-like OSes). Mac OSX users: Run ' + + '`brew install libomp` to install OpenMP runtime.\n' + ' * You are running 32-bit Python on a 64-bit OS\n' + 'Error message(s): {}\n'.format(os_error_list)) lib.XGBGetLastError.restype = ctypes.c_char_p