【问题标题】:Missing /bin folder from MinGW-W64 installationMinGW-W64 安装中缺少 /bin 文件夹
【发布时间】:2016-11-15 08:03:10
【问题描述】:

现在我正在通过this walk-through 研究如何获取 python 的 xgboost 包。我在 Windows 10 上运行。

按照说明,我刚刚将C:\Program Files\mingw-w64\x86_64-5.3.0-posix-seh-rt_v4-rev0\mingw64\bin 添加到我的路径变量中。但是,当我实际使用 Windows 资源管理器C:\Program Files\mingw-w64\x86_64-5.3.0-posix-seh-rt_v4-rev0 访问时,我看到:

看不到mingw64\bin 文件夹。这似乎是一个问题,因为当我尝试继续下一步并仔细检查是否可以在 Git Shell 中找到 make 时,我收到了错误:

C:\Users\thomasjp\Documents\GitHub> which mingw32-make

/usr/bin/which: no mingw32-make in (/cmd:/usr/bin:/usr/share/git-tfs:/c/Users/thomasjp/AppData/Local/Apps/2.0/03NZLAC2.ADB/NNC33V77.BDA/gith..tion_317444273a93ac29_0003.0001_cbe40ecbe3e419d4:/c/Users/thomasjp/AppData/Local/GitHub/lfs-amd64_1.2.0:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/c/WINDOWS/System32/WindowsPowerShell/v1.0:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files (x86)/Brackets/command:/c/Program Files/mingw-w64/x86_64-5.3.0-posix-seh-rt_v4-rev0/mingw64/bin:/c/Program Files (x86)/Skype/Phone:/c/Users/thomasjp/Miniconda3:/c/Users/thomasjp/Miniconda3/Scripts:/c/Users/thomasjp/Miniconda3/Library/bin:/c/Program Files/Intel/WiFi/bin:/c/Program Files/Common Files/Intel/WirelessCommon:/c/Program Files (x86)/MSBuild/14.0/bin)

这基本上可以说mingw32-make 不存在。为什么是这样?我该怎么办?

如果我的问题不清楚或无法重现,请随时提出更多问题/提出修改建议。

【问题讨论】:

  • 我已经有一段时间没有为 Windows 构建任何东西了,但我认为您需要通过 MinGW 安装一些软件包。

标签: python windows git xgboost


【解决方案1】:

我尝试过同样的演练,但使用 tdm-gcc as mingw 并且成功了

我建议你看看Disco4Ever here, on stackoverflow关于如何在windows上为python安装XGBoost的更一般的答案

【讨论】:

    【解决方案2】:

    安装minGW的文件夹不能有空格试试去掉空格 “程序文件”或使用程序文件。

    【讨论】:

      【解决方案3】:

      第 1 步 - https://sourceforge.net/projects/mingw/ 去这个站点安装mingw文件管理器

      第 2 步 - 然后,从文件管理器或根据您的偏好安装所有文件。

      第 3 步 - 现在,转到系统中的文件资源管理器,查看 mingw 中有 bin 文件夹。

      希望问题能解决。

      【讨论】:

        猜你喜欢
        • 2020-06-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-12-24
        • 1970-01-01
        • 2019-10-29
        • 2021-10-23
        相关资源
        最近更新 更多