Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xgboost under windows server 2019 #11135

Open
worktonyli10 opened this issue Dec 30, 2024 · 1 comment
Open

xgboost under windows server 2019 #11135

worktonyli10 opened this issue Dec 30, 2024 · 1 comment

Comments

@worktonyli10
Copy link

I insalled python 3.12.0 64bit under windows server 2019

import xgboost as xgb
import numpy as np

np.random.seed(42)

run it and it has the following error
xgboost.core.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

It has OpenMP support, why it shows 32-bit python
'32bit', 'WindowsPE'

how to fix it

@trivialfis
Copy link
Member

trivialfis commented Dec 31, 2024

Could you please share how did you install XGBoost and Python?

Also, please share the full backtrace and error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants