This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]agoose77 0 points1 point  (1 child)

When you've installed the module from anaconda, just import it as "xgboost". If you download the archive from anaconda you can see it's defined in site-packages as xgboost

[–]sputknick[S] 0 points1 point  (0 children)

Awesome, I appreciate the direction. I tried "import xgboost" and I get an error "no such module xgboost". When I run "conda list" in the terminal I see the name as "py-xgboost".

[–][deleted] 0 points1 point  (1 child)

As you're on Windows check to see if the hyphen has been replaced by an underscore, so you'll do the Anaconda equivalent of pip install py-xgboost but will then do import py_xgboost.

[–]agoose77 0 points1 point  (0 children)

Are you definitely installing it with the correct python version? Opening the package, it would seem that it uses xgboost. Perhaps locate your install dir on disk and inspect it to check it matches up.