pip install のこのライブラリーをインストールしたいのですがこんなエラーで悩んでいます。
どうすれば無事インストールできますか?
mac
1$ pip install vowpalwabbit 2Collecting vowpalwabbit 3 Using cached https://files.pythonhosted.org/packages/56/45/278a8427aa859888b3fb3e3debeea086557df8def22a23561bfe45e1fb03/vowpalwabbit-8.5.0.tar.gz 4Building wheels for collected packages: vowpalwabbit 5 Building wheel for vowpalwabbit (setup.py) ... error 6 ERROR: Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-wheel-ndfnfkj_ --python-tag cp36: 7 ERROR: running bdist_wheel 8 running build 9 running build_py 10 creating build 11 creating build/lib.macosx-10.9-x86_64-3.6 12 creating build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit 13 copying vowpalwabbit/pyvw.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit 14 copying vowpalwabbit/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit 15 copying vowpalwabbit/sklearn_vw.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit 16 running egg_info 17 writing vowpalwabbit.egg-info/PKG-INFO 18 writing dependency_links to vowpalwabbit.egg-info/dependency_links.txt 19 writing top-level names to vowpalwabbit.egg-info/top_level.txt 20 reading manifest file 'vowpalwabbit.egg-info/SOURCES.txt' 21 reading manifest template 'MANIFEST.in' 22 warning: no files found matching '*.dll' under directory 'bin' 23 warning: no previously-included files matching '*.o' found anywhere in distribution 24 warning: no previously-included files matching '*.exe' found anywhere in distribution 25 warning: no previously-included files matching '*.pyc' found anywhere in distribution 26 writing manifest file 'vowpalwabbit.egg-info/SOURCES.txt' 27 running build_ext 28 Traceback (most recent call last): 29 File "<string>", line 1, in <module> 30 File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 209, in <module> 31 tests_require=['tox'] 32 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup 33 return distutils.core.setup(**attrs) 34 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup 35 dist.run_commands() 36 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands 37 self.run_command(cmd) 38 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command 39 cmd_obj.run() 40 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 192, in run 41 self.run_command('build') 42 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command 43 self.distribution.run_command(command) 44 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command 45 cmd_obj.run() 46 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run 47 self.run_command(cmd_name) 48 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command 49 self.distribution.run_command(command) 50 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command 51 cmd_obj.run() 52 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run 53 _build_ext.run(self) 54 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run 55 _build_ext.build_ext.run(self) 56 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run 57 self.build_extensions() 58 File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions 59 self.build_extension(ext) 60 File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 119, in build_extension 61 env['PYTHON_LIBS'] = '-l {}'.format(find_boost()) 62 File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 44, in find_boost 63 raise Exception('Could not find boost python library') 64 Exception: Could not find boost python library 65 ---------------------------------------- 66 ERROR: Failed building wheel for vowpalwabbit 67
どうやってインストールしたPythonかを追記してもらうとよいと思います。
よくわからないなら
pip -V
python -c 'import sys; print(sys.prefix)'
の実行結果があるといいかと。
エラー内容を見ると、
> Exception: Could not find boost python library
とのことですが、インストールに必要な依存関係は満たしていますか?
https://pypi.org/project/vowpalwabbit/
