Я установил xgboost с помощью xgboost-1.1.0-cp37-cp37m-win32.whl ошибка говорит об установке одного из двух vcomp140.dll или libgomp-1.dll Я пробовал с обоими, но не показывает результата используя conda, я использую ноутбук jupyter.
import xgboost
XGBoostError Traceback (most recent call last)
<ipython-input-1-e444c8490328> in <module>
----> 1 from xgboost import XGBRegressor
2 from sklearn.model_selection import train_test_split
3 from sklearn.metrics import accuracy_score
c:\users\aarja\appdata\local\programs\python\python37-32\lib\site-packages\xgboost\__init__.py in <module>
9 import warnings
10
---> 11 from .core import DMatrix, DeviceQuantileDMatrix, Booster
12 from .training import train, cv
13 from . import rabit # noqa
c:\users\aarja\appdata\local\programs\python\python37-32\lib\site-packages\xgboost\core.py in <module>
173
174 # load the XGBoost library globally
--> 175 _LIB = _load_lib()
176
177
c:\users\aarja\appdata\local\programs\python\python37-32\lib\site-packages\xgboost\core.py in _load_lib()
164 '`brew install libomp` to install OpenMP runtime.\n' +
165 ' * You are running 32-bit Python on a 64-bit OS\n' +
--> 166 'Error message(s): {}\n'.format(os_error_list))
167 lib.XGBGetLastError.restype = ctypes.c_char_p
168 lib.callback = _get_log_callback_func()
XGBoostError: XGBoost Library (xgboost.dll) could not be loaded.
Likely causes:
* OpenMP runtime is not installed (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.
* You are running 32-bit Python on a 64-bit OS
Error message(s): ['[WinError 193] %1 is not a valid Win32 application']