Search code examples
pythonwindowsmachine-learninginstallationxgboost

Trying to install xgboost in python on windows


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


Solution

  • 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.