pipでベイズ最適化のライブラリのGPyOpt、GPyをインストールしようとしましたが、以下のエラーが出て
インストールできません。
対処法をご存知の方、教えていただけると幸いです。
(環境)
python 3.7.1
Anaconda 4.5.12
pip install GPyOpt
Collecting GPyOpt
Requirement already satisfied: numpy>=1.7 in ./yes/lib/python3.7/site-packages (from GPyOpt) (1.15.4)
Requirement already satisfied: scipy>=0.16 in ./yes/lib/python3.7/site-packages (from GPyOpt) (1.2.0)
Collecting GPy>=1.8 (from GPyOpt)
Using cached https://files.pythonhosted.org/packages/98/7d/e55ffc3b16b68e8b50ccecacec56715bcf49d5c2f204f5ba60374d419611/GPy-1.9.6.tar.gz
Requirement already satisfied: six in ./yes/lib/python3.7/site-packages (from GPy>=1.8->GPyOpt) (1.11.0)
Collecting paramz>=0.9.0 (from GPy>=1.8->GPyOpt)
Requirement already satisfied: decorator>=4.0.10 in ./yes/lib/python3.7/site-packages (from paramz>=0.9.0->GPy>=1.8->GPyOpt) (4.3.0)
Building wheels for collected packages: GPy
Running setup.py bdist_wheel for GPy ... error
(中略)
_import_array(void)
^~~~~~~~~~~~~
error: command 'gcc' failed with exit status 1
Failed building wheel for GPy
Running setup.py clean for GPy
Failed to build GPy
(中略)
/home/hide4/yes/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘_import_array’ defined but not used [-Wunused-function] _import_array(void) ^~~~~~~~~~~~~ error: command 'gcc' failed with exit status 1 ----------------------------------------
Command "/home/hide4/yes/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-f0dghtje/GPy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-hytaxm8y/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-f0dghtje/GPy/
あなたの回答
tips
プレビュー