#xgboostのインストールに手こずったのでメモ。
(1)xcrunをセットアップ
xcode-select --install
(2)gccをインストール
brew reinstall gcc
(3)xgboostをインストール
pip install xgboost
これでようやくインストールできました。
#記録
###(1回目)pip install xgboost
pip install xgboost
Collecting xgboost
Using cached https://files.pythonhosted.org/packages/96/84/4e2cae6247f397f83d8adc5c2a2a0c5d7d790a14a4c7400ff6574586f589/xgboost-0.90.tar.gz
ERROR: Command errored out with exit status 1:
command: /anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/setup.py'"'"'; __file__='"'"'/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/pip-egg-info
cwd: /private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/
Complete output (28 lines):
++ pwd
+ oldpath=/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost
+ cd ./xgboost/
+ echo darwin18
+ grep -q darwin
+ LIB_XGBOOST=libxgboost.dylib
+ which g++-5
+ which g++-7
+ which g++-8
/usr/local/bin/g++-8
+ export CC=gcc-8
+ CC=gcc-8
+ export CXX=g++-8
+ CXX=g++-8
+ make clean
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/setup.py", line 42, in <module>
LIB_PATH = libpath['find_lib_path']()
File "/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/xgboost/libpath.py", line 48, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/xgboost/libxgboost.dylib
/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/xgboost/../../lib/libxgboost.dylib
/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-ebnqsjiy/xgboost/xgboost/./lib/libxgboost.dylib
/anaconda3/xgboost/libxgboost.dylib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[12:59:38 2 ~]$
xcrun
でエラーになっている。
ls /Library/Developer/CommandLineTools
→ある。
ls /Library/Developer/CommandLineTools/usr/bin/xcrun
→ない!
xcrunがないというエラー。
試しにxrun
だけ実行してみる。
$ xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
再現した。
xcrun
で調べてみるが、何のコマンドかさっぱりわからない。xcrunがなくて困った、Xcodeをインストールしたら治った、そんな記事はある。
ようやくちょっとだけ記述があったのがこれ。
ちなみに、念のため補足すると xcrun は Swift 専用コマンドではなくて、コマンドラインから開発ツールを見つけたり、 呼び出したりするためのコマンドです。
Swift を用いた iOS 開発環境 » xcrun と Playground による対話的 Swift プログラミング
うーん、よくわからないものをインストールするのは気持ちが悪い。でも仕方ない。
####xcrunをセットアップ
$ xcode-select --install
インストーラーが起動したので、ガイドにしたがってインストール。
xcrunを実行してみる。
$ xcrun
Usage: xcrun [options] <tool name> ... arguments ...
Find and execute the named command line tool from the active developer
directory.
The active developer directory can be set using `xcode-select`, or via the
DEVELOPER_DIR environment variable. See the xcrun and xcode-select manual
pages for more information.
Options:
-h, --help show this help message and exit
--version show the xcrun version
-v, --verbose show verbose logging output
--sdk <sdk name> find the tool for the given SDK name
--toolchain <name> find the tool for the given toolchain
-l, --log show commands to be executed (with --run)
-f, --find only find and print the tool path
-r, --run find and execute the tool (the default behavior)
-n, --no-cache do not use the lookup cache
-k, --kill-cache invalidate all existing cache entries
--show-sdk-path show selected SDK install path
--show-sdk-version show selected SDK version
--show-sdk-build-version show selected SDK build version
--show-sdk-platform-path show selected SDK platform path
--show-sdk-platform-version show selected SDK platform version
ためしにxcrunからpythonを呼んでみる。
$ xcrun python
Python 3.6.8 |Anaconda, Inc.| (default, Dec 29 2018, 19:04:46)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
なるほどー
###(2回目)pip install xgboost
$ pip install xgboost
Collecting xgboost
Using cached https://files.pythonhosted.org/packages/96/84/4e2cae6247f397f83d8adc5c2a2a0c5d7d790a14a4c7400ff6574586f589/xgboost-0.90.tar.gz
ERROR: Command errored out with exit status 1:
command: /anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/setup.py'"'"'; __file__='"'"'/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/pip-egg-info
cwd: /private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/
Complete output (150 lines):
++ pwd
+ oldpath=/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost
+ cd ./xgboost/
+ echo darwin18
+ grep -q darwin
+ LIB_XGBOOST=libxgboost.dylib
+ which g++-5
+ which g++-7
+ which g++-8
/usr/local/bin/g++-8
+ export CC=gcc-8
+ CC=gcc-8
+ export CXX=g++-8
+ CXX=g++-8
+ make clean
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
if [ -d "R-package/src" ]; then \
cd R-package/src; \
rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
cd /private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/xgboost; \
fi
+ make lib/libxgboost.dylib -j4
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/logging.o src/logging.cc >build/logging.d
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/learner.o src/learner.cc >build/learner.d
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
In file included from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/string:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/array:39,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/tuple:39,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/mutex:38,
from dmlc-core/include/dmlc/thread_local.h:9,
from src/c_api/c_api_error.cc:6:
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
make: *** [build/c_api/c_api_error.o] Error 1
make: *** Waiting for unfinished jobs....
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/logging.cc -o build/logging.o
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/c_api/c_api.cc -o build/c_api/c_api.o
In file included from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/string:40,
from rabit/include/rabit/rabit.h:13,
from src/logging.cc:7:
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
In file included from include/xgboost/data.h:10,
from src/c_api/c_api.cc:3:
dmlc-core/include/dmlc/base.h:190:10: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^~~~~~~~~~~~~
compilation terminated.
make: *** [build/logging.o] Error 1
make: *** [build/c_api/c_api.o] Error 1
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -fopenmp src/learner.cc -o build/learner.o
In file included from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cstdio:42,
from dmlc-core/include/dmlc/io.h:8,
from src/learner.cc:7:
/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/stdio.h:78:10: fatal error: _stdio.h: No such file or directory
#include <_stdio.h>
^~~~~~~~~~
compilation terminated.
make: *** [build/learner.o] Error 1
+ echo -----------------------------
-----------------------------
+ echo 'Building multi-thread xgboost failed'
Building multi-thread xgboost failed
+ echo 'Start to build single-thread xgboost'
Start to build single-thread xgboost
+ make clean
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
rm -f -rf build build_plugin lib bin *~ */*~ */*/*~ */*/*/*~ */*.o */*/*.o */*/*/*.o #xgboost
rm -f -rf build_tests *.gcov tests/cpp/xgboost_test
if [ -d "R-package/src" ]; then \
cd R-package/src; \
rm -f -rf rabit src include dmlc-core amalgamation *.so *.dll; \
cd /private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/xgboost; \
fi
+ make lib/libxgboost.dylib -j4 USE_OPENMP=0
Makefile:31: MAKE [/Library/Developer/CommandLineTools/usr/bin/make] - checked OK
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/learner.o src/learner.cc >build/learner.d
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/logging.o src/logging.cc >build/logging.d
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api.o src/c_api/c_api.cc >build/c_api/c_api.d
g++-8 -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP -MM -MT build/c_api/c_api_error.o src/c_api/c_api_error.cc >build/c_api/c_api_error.d
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api_error.cc -o build/c_api/c_api_error.o
In file included from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/string:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/stdexcept:39,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/array:39,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/tuple:39,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/mutex:38,
from dmlc-core/include/dmlc/thread_local.h:9,
from src/c_api/c_api_error.cc:6:
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
make: *** [build/c_api/c_api_error.o] Error 1
make: *** Waiting for unfinished jobs....
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/logging.cc -o build/logging.o
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/c_api/c_api.cc -o build/c_api/c_api.o
In file included from include/xgboost/data.h:10,
from src/c_api/c_api.cc:3:
dmlc-core/include/dmlc/base.h:190:10: fatal error: sys/types.h: No such file or directory
#include <sys/types.h>
^~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/postypes.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/bits/char_traits.h:40,
from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/string:40,
from rabit/include/rabit/rabit.h:13,
from src/logging.cc:7:
/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
#include <wchar.h>
^~~~~~~~~
compilation terminated.
make: *** [build/c_api/c_api.o] Error 1
make: *** [build/logging.o] Error 1
g++-8 -c -DDMLC_LOG_CUSTOMIZE=1 -std=c++11 -Wall -Wno-unknown-pragmas -Iinclude -Idmlc-core/include -Irabit/include -I/include -O3 -funroll-loops -msse2 -fPIC -DDISABLE_OPENMP src/learner.cc -o build/learner.o
In file included from /usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cstdio:42,
from dmlc-core/include/dmlc/io.h:8,
from src/learner.cc:7:
/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/include-fixed/stdio.h:78:10: fatal error: _stdio.h: No such file or directory
#include <_stdio.h>
^~~~~~~~~~
compilation terminated.
make: *** [build/learner.o] Error 1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/setup.py", line 42, in <module>
LIB_PATH = libpath['find_lib_path']()
File "/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/xgboost/libpath.py", line 48, in find_lib_path
'List of candidates:\n' + ('\n'.join(dll_path)))
XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path, did you install compilers and run build.sh in root path?
List of candidates:
/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/xgboost/libxgboost.dylib
/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/xgboost/../../lib/libxgboost.dylib
/private/var/folders/9h/3pb2nwj16715t8jgfmrp4k2c0000gn/T/pip-install-iyzy7nu8/xgboost/xgboost/./lib/libxgboost.dylib
/anaconda3/xgboost/libxgboost.dylib
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[14:14:36 19 ~]$
今度は/usr/local/Cellar/gcc/8.2.0/include/c++/8.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
ローカルのどこにもないので、gccをインストールしてみる。
####gccをインストール
[14:38:30 23 ~]$ brew reinstall gcc
==> Reinstalling gcc
==> Installing dependencies for gcc: isl and mpfr
==> Installing gcc dependency: isl
==> Downloading https://homebrew.bintray.com/bottles/isl-0.21.mojave.bottle.tar.
==> Downloading from https://akamai.bintray.com/f9/f9188b5d486b2a835cd865f219be1
######################################################################## 100.0%
==> Pouring isl-0.21.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/isl/0.21: 72 files, 4.3MB
==> Installing gcc dependency: mpfr
==> Downloading https://homebrew.bintray.com/bottles/mpfr-4.0.2.mojave.bottle.ta
==> Downloading from https://akamai.bintray.com/cf/cfce7ab866e98360c9364cd924da6
######################################################################## 100.0%
==> Pouring mpfr-4.0.2.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/mpfr/4.0.2: 28 files, 4.7MB
==> Installing gcc
==> Downloading https://homebrew.bintray.com/bottles/gcc-9.2.0.mojave.bottle.tar
==> Downloading from https://akamai.bintray.com/a0/a053832700c5f4d5606929b8101f5
######################################################################## 100.0%
==> Pouring gcc-9.2.0.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/gcc/9.2.0: 1,462 files, 291.4MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/foobar/Library/Caches/Homebrew/autoconf--2.69.mojave.bottle.4.tar.gz... (874.7KB)
Removing: /Users/foobar/Library/Caches/Homebrew/gettext--0.19.8.1.high_sierra.bottle.tar.gz... (7.8MB)
Removing: /Users/foobar/Library/Caches/Homebrew/gmp--6.1.2_2.high_sierra.bottle.tar.gz... (1005KB)
Removing: /Users/foobar/Library/Caches/Homebrew/icu4c--63.1.mojave.bottle.tar.gz... (25.9MB)
Removing: /usr/local/Cellar/isl/0.20... (71 files, 3.9MB)
Removing: /Users/foobar/Library/Caches/Homebrew/isl--0.20.high_sierra.bottle.tar.gz... (1.4MB)
Removing: /Users/foobar/Library/Caches/Homebrew/libmpc--1.1.0.high_sierra.bottle.tar.gz... (114.2KB)
Removing: /usr/local/Cellar/mpfr/4.0.1... (28 files, 4.6MB)
Removing: /Users/foobar/Library/Caches/Homebrew/mpfr--4.0.1.high_sierra.bottle.tar.gz... (1.1MB)
Removing: /Users/foobar/Library/Caches/Homebrew/mysql--8.0.15.mojave.bottle.tar.gz... (60.9MB)
Removing: /Users/foobar/Library/Caches/Homebrew/nodebrew--1.0.1.tar.gz... (26.3KB)
Removing: /Users/foobar/Library/Caches/Homebrew/openssl--1.0.2q.mojave.bottle.tar.gz... (3.7MB)
Removing: /Users/foobar/Library/Caches/Homebrew/openssl--1.0.2r.mojave.bottle.tar.gz... (3.7MB)
Removing: /Users/foobar/Library/Caches/Homebrew/postgresql--11.2.mojave.bottle.tar.gz... (10MB)
Removing: /Users/foobar/Library/Caches/Homebrew/rbenv--1.1.1.mojave.bottle.2.tar.gz... (18.7KB)
Removing: /Users/foobar/Library/Caches/Homebrew/readline--8.0.0.mojave.bottle.tar.gz... (516.7KB)
Removing: /Users/foobar/Library/Caches/Homebrew/descriptions.json... (262.7KB)
Removing: /Users/foobar/Library/Caches/Homebrew/Cask/chromedriver--75.0.3770.8.zip... (6.8MB)
Removing: /Users/foobar/Library/Logs/Homebrew/postgresql... (1.3KB)
Removing: /Users/foobar/Library/Logs/Homebrew/icu4c... (64B)
Removing: /Users/foobar/Library/Logs/Homebrew/readline... (64B)
Removing: /Users/foobar/Library/Logs/Homebrew/ruby-build... (2 files, 179B)
Removing: /Users/foobar/Library/Logs/Homebrew/nodebrew... (104B)
Removing: /Users/foobar/Library/Logs/Homebrew/mysql... (956B)
Removing: /Users/foobar/Library/Logs/Homebrew/autoconf... (64B)
Removing: /Users/foobar/Library/Logs/Homebrew/openssl... (64B)
Removing: /Users/foobar/Library/Logs/Homebrew/rbenv... (64B)
Pruned 3 symbolic links and 2 directories from /usr/local
###(3回目)pip install xgboost
[14:39:55 24 ~]$ pip install xgboost
Collecting xgboost
Using cached https://files.pythonhosted.org/packages/96/84/4e2cae6247f397f83d8adc5c2a2a0c5d7d790a14a4c7400ff6574586f589/xgboost-0.90.tar.gz
Requirement already satisfied: numpy in /anaconda3/lib/python3.6/site-packages (from xgboost) (1.17.4)
Requirement already satisfied: scipy in /anaconda3/lib/python3.6/site-packages (from xgboost) (1.3.1)
Building wheels for collected packages: xgboost
Building wheel for xgboost (setup.py) ... done
Created wheel for xgboost: filename=xgboost-0.90-cp36-cp36m-macosx_10_7_x86_64.whl size=1696834 sha256=41e48b856196b875507f9fa87e405af97d7cbc364b9fd0f0f5d6f26edb46ae3f
Stored in directory: /Users/foobar/Library/Caches/pip/wheels/e9/48/4d/de4187b5270dff71d3697c5a7857a1e2d9a0c63a28b3462eeb
Successfully built xgboost
Installing collected packages: xgboost
Successfully installed xgboost-0.90
[14:57:41 25 ~]$
できた!