【问题标题】:Command "python setup.py egg_info" failed with error code 1 while installing XGBoost on Mac在 Mac 上安装 XGBoost 时命令“python setup.py egg_info”失败,错误代码 1
【发布时间】:2022-02-09 17:23:02
【问题描述】:

我在成功运行 anaconda 版本 python 2.7 时安装了xgboost。但是,当我下载 Anaconda 版本 python 3 并尝试安装 XGBoost 时,我不断收到错误消息:

当我在终端中使用此代码时:

pip install xgboost

我明白了:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/52/wgzpv6997ls_75gm5km3vqzw0000gn/T/pip-build-3wk9f1z7/xgboost/

我想知道为什么会这样。

【问题讨论】:

    标签: python anaconda jupyter-notebook xgboost


    【解决方案1】:

    在 MacOSX 上尝试以下命令:

    git clone --recursive https://github.com/dmlc/xgboost
    cd xgboost; cp make/minimum.mk ./config.mk; make -j4
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-21
      • 1970-01-01
      • 1970-01-01
      • 2014-02-26
      • 1970-01-01
      • 2018-12-23
      • 2018-08-08
      • 2019-10-31
      相关资源
      最近更新 更多