エラー内容
python2.7, 3.5にて、OSはMac OS X.
auto-sklearnのドキュメントにしたがって Anaconda以下で指定の手順でauto-sklearnをインストールすると、 以下のエラーで止まってしまった。
ted_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it by " \ ^ pyrfr/regression.cpp:496:10: fatal error: 'random' file not found #include <random> ^ 1 warning and 1 error generated. error: command 'gcc' failed with exit status 1 ---------------------------------------- Command "/Users/ユーザー名/anaconda/envs/python27/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/yp/khbks_h91tlbdvqxnxyqtv5m0000gp/T/pip-build-g8wAgb/pyrfr/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/yp/khbks_h91tlbdvqxnxyqtv5m0000gp/T/pip-jCTD7x-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/yp/khbks_h91tlbdvqxnxyqtv5m0000gp/T/pip-build-g8wAgb/pyrfr/
インストール手順
python2.7
にて以下の手順でインストール成功。
環境に入る
$ source activate python27env
gccをインストール
conda install gcc
(必要なら)以下のライブラリをアンインストール
pip uninstall pyrfr pip uninstall auto-sklearn
auto-sklearnのインストール
$ curl https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt | xargs -n 1 -L 1 pip install $ pip install auto-sklearn