我已经尝试了我在网络上可以找到的所有可能的解决方案来安装xgboop==0.6a2
我有MacOS Mojave 10.14.4
我正在尝试使用python 3.6
这是 pip 命令的结果
pip install xgboost==0.6a2
Collecting xgboost==0.6a2
Using cached https://files.pythonhosted.org/packages/34/85/456a1a8c762f646671043e446a59efbce02b5f408f522c4ef8793e860c5e/xgboost-0.6a2.tar.gz
ERROR: Complete output from command python setup.py egg_info:
ERROR: 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
-----------------------------
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/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/xgboost/setup.py", line 29, in <module>
LIB_PATH = libpath['find_lib_path']()
File "/private/var/folders/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/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/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/xgboost/xgboost/libxgboost.so
/private/var/folders/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/xgboost/xgboost/../../lib/libxgboost.so
/private/var/folders/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/xgboost/xgboost/./lib/libxgboost.so
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/xgboost/
我下载了xgboops并尝试从源代码安装
python setup.py install
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
-----------------------------
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 "setup.py", line 29, in <module>
LIB_PATH = libpath['find_lib_path']()
File "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:
/Users/karim/Documents/software/xgboost-0.6a2/xgboost/libxgboost.so
/Users/karim/Documents/software/xgboost-0.6a2/xgboost/../../lib/libxgboost.so
/Users/karim/Documents/software/xgboost-0.6a2/xgboost/./lib/libxgboost.so
我还尝试通过以下方式安装gcc5
brew install gcc@5
这给了
错误:gcc@55.50_2已安装
当我输入< code>gcc -v时,它给出
配置为:-prefix =/Library/Developer/command line tools/usr-with-gxx-include-dir =/Library/Developer/command line tools/SDKs/ma cosx 10.14 . SDK/usr/include/c/4 . 2 . 1 Apple LLVM版本10.0.1 (clang-1001.0.46.4)目标:x86_64-apple-darwin18.5.0线程模型:POSIX installed dir:/Library/Developer/command line tools/us
在Mac上配置它是否需要遵循任何特定步骤?
非常感谢任何帮助。
我认为拥有
ERROR: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/8s/jbryfvkn68jg4d2p2mncgqqw0000gq/T/pip-install-bp2gsdf9/xgboost/
意味着您的设置工具已过时。您可以通过执行以下操作来修复它:
pip install --upgrade setuptools