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

Can not import xgboost in Anaconda Jupyter Notebook, with error 127 #1644

Closed
wangjiahong opened this issue Oct 8, 2016 · 5 comments
Closed

Comments

@wangjiahong
Copy link

Xgboost could work in python, but does not work in Anaconda Jupyter notebook

3

1
2

Environment info

Operating System: Windows 7 64bit

Compiler:

Package used (python/R/jvm/C++): Python 2.7

xgboost version used: 0.6

If you are using python package, please provide

  1. The python version and distribution: Python 2.7.12 |Anaconda 4.1.1 (64-bit)
@wangjiahong
Copy link
Author

wangjiahong commented Oct 8, 2016

@phunterlau @pluskid @xydrolase Could you help me with this, please?

@phunterlau
Copy link
Contributor

@wangjiahong666 have you verified with this instruction https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_XGBoost_For_Anaconda_on_Windows?lang=en and the PATH of your xgboost installation? The PATH can be the tricky key for notebooks.

@wangjiahong
Copy link
Author

wangjiahong commented Oct 12, 2016

@phunterlau Thank you
Yes, I verified under the above instruction when I installed Xgboost.

Now I have figured out how to get Xgboost work in Jupyter Notebook.
I have to launch Jupyter Notebook by clicking the "Jupyter Notebook" from start menu, then Xgboost works.
1

If I launch jupyter notebook from Git Bash, then Xgboost does NOT work.
Very interesting......

@phunterlau
Copy link
Contributor

@wangjiahong666 you might want to manually set the PATH from python's sys so the notebook doesn't rely on specific windows PATH configuration.

@rosnilt
Copy link

rosnilt commented Apr 7, 2017

Yeyy..finally opening Jupyter notebook from the start menu works for me as well, thanks a lot.

@tqchen tqchen closed this as completed Jul 4, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants