2

I have been driving myself crazy trying to install xgboost in python on windows 10. I have looked through several suggested articles but still can't seem to find a proper solution. If anyone has done this before kindly share your method other suggestions are also welcome.

Thank

8
  • Did you follow this article specifically? github.com/dmlc/xgboost/blob/master/doc/… Commented Apr 4, 2016 at 20:32
  • I tried following it, downloaded git for windows, tried creating a buildbut it keep throwing error like - fatal: could not create work tree dir 'xgboost': Permission denied The steps are not very clear and I have not used GIT before thats why I am having a hard time doing this.... Commented Apr 5, 2016 at 14:16
  • Open MinGW as administrator and try again. That should handle permission denied errors. Commented Apr 5, 2016 at 17:00
  • Hey I am getting this error cp: cannot stat 'make/mingw64.mk': No such file or directory bash: mingw32-make: command not found Even after adding this statement in the .bashhrc alias make='mingw32-make' Commented Apr 5, 2016 at 17:17
  • That just means you're in the wrong directory. In general, when you are using command line environments such as MinGW and even the Windows cmd, you use the cd command to move directories (cd is an abbreviation for change directory). Did you add alias make='mingw32-make' to the .bashrc file? If you did, do the following: source ~/.bashrc What's the output of pwd in MinGW? Commented Apr 5, 2016 at 17:23

2 Answers 2

2

I had exactly the same problem and just got it resolved! So, basically it's because the "openmp" component is not installed since it's not selected as default. Do the following and it'll work for you!

  1. Close Git Bash
  2. Uninstall TDM-GCC
  3. Reinstall TDM-GCC and be sure to select openmp
  4. try again using Git Bash
  5. If still doesn't work, start from beginning the whole process as described in this page

Also refer to this post for more details.

Sign up to request clarification or add additional context in comments.

Comments

0

I managed to install xgboost on Win and Python using Visual Studio following these instructions.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.