尝试在 windows python 中安装 xgboost

Trying to install xgboost in python on windows

在 windows 10 上尝试在 python 中安装 xgboost 时,我一直在发疯。我已经阅读了几篇建议的文章,但似乎仍然找不到合适的解决方案。如果有人以前这样做过,请分享您的方法,也欢迎其他建议。

谢谢

我遇到了完全相同的问题,刚刚解决了!所以,基本上是因为 "openmp" 组件没有安装,因为它不是默认的 selected。执行以下操作,它会为你工作!

  1. 关闭GitBash
  2. 卸载 TDM-GCC
  3. 重新安装 TDM-GCC 并确保 select openmp
  4. 使用 Git Bash
  5. 再试一次
  6. 如果还是不行,从头开始整个过程​​as described in this page

另请参阅this post for more details

我在 these instructions 之后使用 Visual Studio 在 Win 和 Python 上安装了 xgboost。