Instruct Mac users to install libomp (#5606)

This commit is contained in:
Philip Hyunsu Cho 2020-04-25 15:50:30 -07:00 committed by GitHub
parent 474cfddf91
commit 4fd95272c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,8 +159,9 @@ def _load_lib():
'XGBoost Library ({}) could not be loaded.\n'.format(libname) + 'XGBoost Library ({}) could not be loaded.\n'.format(libname) +
'Likely causes:\n' + 'Likely causes:\n' +
' * OpenMP runtime is not installed ' + ' * OpenMP runtime is not installed ' +
'(vcomp140.dll or libgomp-1.dll for Windows, ' + '(vcomp140.dll or libgomp-1.dll for Windows, libomp.dylib for Mac OSX, ' +
'libgomp.so for UNIX-like OSes)\n' + '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' + ' * You are running 32-bit Python on a 64-bit OS\n' +
'Error message(s): {}\n'.format(os_error_list)) 'Error message(s): {}\n'.format(os_error_list))
lib.XGBGetLastError.restype = ctypes.c_char_p lib.XGBGetLastError.restype = ctypes.c_char_p