在OS X上通过Anaconda 1.5.1安装XGBoost失败 [英] XGBoost installation via Anaconda 1.5.1 fails on OS X

查看:136
本文介绍了在OS X上通过Anaconda 1.5.1安装XGBoost失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用brew install gcc --without-multilib通过Homebrew安装了GCC.当我尝试在运行Python 3.5.2的OS X El Capitan 10.11.6和Conda 4.1.11的Anaconda 1.5.1中使用pip install xgboost时,得到以下输出和错误:

I have GCC installed via Homebrew using brew install gcc --without-multilib. When I tried to use pip install xgboost in Anaconda 1.5.1 on OS X El Capitan 10.11.6 and Conda 4.1.11 running Python 3.5.2, I get the following output and error:

Collecting xgboost
  Using cached xgboost-0.6a2.tar.gz
    Complete output from command python setup.py egg_info:
    rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o xgboost
    clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
    /bin/sh: clang-omp++: command not found
    clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
    make: *** [build/learner.o] Error 127
    make: *** Waiting for unfinished jobs....
    /bin/sh: clang-omp++: command not found
    make: *** [build/logging.o] Error 127
    -----------------------------
    Building multi-thread xgboost failed
    Start to build single-thread xgboost
    rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o xgboost
    clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
    /bin/sh: clang-omp++: command not found
    make: *** [build/learner.o] Error 127
    make: *** Waiting for unfinished jobs....
    clang-omp++ -std=c++0x -Wall -O3 -msse2  -Wno-unknown-pragmas -funroll-loops -Iinclude   -Idmlc-core/include -Irabit/include -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
    /bin/sh: clang-omp++: command not found
    make: *** [build/logging.o] Error 127
    Successfully build single-thread xgboost
    If you want multi-threaded version
    See additional instructions in doc/build.md
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/94/yw1tx2t95lb31nlww2nwpk114lvh7b/T/pip-build-k_1ed1r6/xgboost/setup.py", line 29, in <module>
        LIB_PATH = libpath['find_lib_path']()
      File "/private/var/folders/94/yw1tx2t95lb31nlww2nwpk114lvh7b/T/pip-build-k_1ed1r6/xgboost/xgboost/libpath.py", line 45, in find_lib_path
        'List of candidates:\n' + ('\n'.join(dll_path)))
    XGBoostLibraryNotFound: Cannot find XGBoost Libarary in the candicate path, did you install compilers and run build.sh in root path?
    List of candidates:
    /private/var/folders/94/yw1tx2t95lb31nlww2nwpk114lvh7b/T/pip-build-k_1ed1r6/xgboost/xgboost/libxgboost.so
    /private/var/folders/94/yw1tx2t95lb31nlww2nwpk114lvh7b/T/pip-build-k_1ed1r6/xgboost/xgboost/../../lib/libxgboost.so
    /private/var/folders/94/yw1tx2t95lb31nlww2nwpk114lvh7b/T/pip-build-k_1ed1r6/xgboost/xgboost/./lib/libxgboost.so

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/94/yw1tx2t95lb31nlww2nwpk114lvh7b/T/pip-build-k_1ed1r6/xgboost/

推荐答案

我通过遵循 Python软件包安装说明.我现在有了没有pip安装的软件包.

I solved this by following the Python Package Installation instructions. I now have the package without a pip installation.

这篇关于在OS X上通过Anaconda 1.5.1安装XGBoost失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆