【问题标题】:How to Compile XGBoost using MinGW如何使用 MinGW 编译 XGBoost
【发布时间】:2019-08-21 11:58:06
【问题描述】:

我按照herehere 给出的说明在我的Windows 10 上运行XGBoost for Python。我已经安装了Git for Windows,但是当我尝试后续步骤时出现以下错误:

$ cp make/mingw64.mk config.mk; make -j4
cp: cannot stat 'make/mingw64.mk': No such file or directory
make: *** No targets specified and no makefile found.  Stop.

有没有更简单的方法让 XGBoost for Python 运行在 窗户?

任何帮助将不胜感激。

【问题讨论】:

  • 你看过this post吗?您需要 GPU 支持吗?我还针对 GPU 版本询问并回答了我自己的问题here,以防您在尝试使用 Visual Studio 编译它并使用 GPU 支持安装它时遇到安装错误。
  • 谢谢,@MihaiChelaru。让我探索并尝试您的方法。我很快就会回来。
  • 嗨,MihaiChelaru。按照您的回答后,我在第 3 步收到此错误。创建 Visual Studio 项目。有什么想法吗?提前致谢。 User@pc MINGW64 ~/xgboost_dir/build (master) $ cmake .. -G"Visual Studio 12 2013 Win64" CMake Error at CMakeLists.txt:2 (project): Failed to run MSBuild command: MSBuild.exe to get the value of VCTargetsPath: The system cannot find the file specified -- Configuring incomplete, errors occurred! See also "C:/Users/User/xgboost_dir/build/CMakeFiles/CMakeOutput.log".
  • 我相信您正在关注其他用户发布的答案。我的答案使用 VS 2015。您是否在您遵循其说明的帖子下从 this comment 执行了 git submodule init 步骤?
  • 我找到了你的答案。你是对的 - 我遵循了错误的答案。我会尽快更新你。

标签: python-3.x xgboost ming


【解决方案1】:

我尝试按照official guide 以及详细的步骤here 使用mingw 进行此安装。但不幸的是,即使在我的 Windows 10 64 位机器上经过数小时的努力,我也无法完成任何工作。我一直遇到一些错误或其他

最后,对我有用的是将它安装到 anaconda 的py-xgboost package。这对我很有效

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-17
    • 2021-03-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多