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

No module found error after XGBoost installation via Homebrew #5411

Closed
hernandezurbina opened this issue Mar 13, 2020 · 3 comments
Closed

No module found error after XGBoost installation via Homebrew #5411

hernandezurbina opened this issue Mar 13, 2020 · 3 comments

Comments

@hernandezurbina
Copy link

hernandezurbina commented Mar 13, 2020

Hi, I installed xgboost via Homebrew with the intention to use it inside a Python virtualenv. The installation went smoothly, but when doing "import xgboost" in Python (inside or outside a virtualenv) I receive a "No module named xgboost" error. Did I miss anything during installation? Thanks!

@hernandezurbina hernandezurbina changed the title Hi, I installed xgboost via Homebrew with the intention to use it inside a Python virtualenv. The installation went smoothly, but when doing "import xgboost" in Python (inside or outside a virtualenv) I receive a "No module named xgboost" error. Did I miss anything during installation? Thanks! No module found error after XGBoost installation via Homebrew with the intention to use it inside a Python virtualenv. The installation went smoothly, but when doing "import xgboost" in Python (inside or outside a virtualenv) I receive a "No module named xgboost" error. Did I miss anything during installation? Thanks! Mar 13, 2020
@hernandezurbina hernandezurbina changed the title No module found error after XGBoost installation via Homebrew with the intention to use it inside a Python virtualenv. The installation went smoothly, but when doing "import xgboost" in Python (inside or outside a virtualenv) I receive a "No module named xgboost" error. Did I miss anything during installation? Thanks! No module found error after XGBoost installation via Homebrew Mar 13, 2020
@trivialfis
Copy link
Member

@hcho3 Could you please help verifying?

@hcho3
Copy link
Collaborator

hcho3 commented Mar 13, 2020

Current Homebrew package only installs the CLI application and not the Python binding. There's an ongoing discussion to include the Python binding as well: Homebrew/homebrew-core#50467. (This PR also upgrades XGBoost to 1.0.0.)

For now, you can follow steps in #4949 (comment) to install the Python package.

@hcho3
Copy link
Collaborator

hcho3 commented May 17, 2020

@hernandezurbina We just release XGBoost version 1.1.0, and starting from this release, we publish a Python wheel specifically built for Mac OS: https://pypi.org/project/xgboost/1.1.0/#files. You can install it by running

pip install xgboost==1.1.0

Note: you should first install libomp by running brew install libomp. We currently support Mac OS High Sierra, Mojave, and Catalina.

@hcho3 hcho3 closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants