简体   繁体   English

尝试在 Windows 上的 python 中安装 xgboost

[英]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.我一直在疯狂地尝试在 Windows 10 上的 python 中安装 xgboost。我已经浏览了几篇建议的文章,但似乎仍然找不到合适的解决方案。 If anyone has done this before kindly share your method other suggestions are also welcome.如果有人之前做过这件事,请分享您的方法,也欢迎其他建议。

Thank谢谢

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.所以,基本上是因为没有安装“openmp”组件,因为它没有被选择为默认值。 Do the following and it'll work for you!执行以下操作,它会为您服务!

  1. Close Git Bash关闭 Git Bash
  2. Uninstall TDM-GCC卸载 TDM-GCC
  3. Reinstall TDM-GCC and be sure to select openmp重新安装TDM-GCC 一定要选择openmp
  4. try again using Git Bash使用 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 .另请参阅此帖子以了解更多详细信息

我按照这些说明设法使用 Visual Studio 在 Win 和 Python 上安装了 xgboost。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM