Python pip install エラー
受付中
回答 2
投稿
- 評価
- クリップ 0
- VIEW 1,059
pip install のこのライブラリーをインストールしたいのですがこんなエラーで悩んでいます。
どうすれば無事インストールできますか?
$ pip install vowpalwabbit
Collecting vowpalwabbit
Using cached https://files.pythonhosted.org/packages/56/45/278a8427aa859888b3fb3e3debeea086557df8def22a23561bfe45e1fb03/vowpalwabbit-8.5.0.tar.gz
Building wheels for collected packages: vowpalwabbit
Building wheel for vowpalwabbit (setup.py) ... error
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:
ERROR: running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.6
creating build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
copying vowpalwabbit/pyvw.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
copying vowpalwabbit/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
copying vowpalwabbit/sklearn_vw.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
running egg_info
writing vowpalwabbit.egg-info/PKG-INFO
writing dependency_links to vowpalwabbit.egg-info/dependency_links.txt
writing top-level names to vowpalwabbit.egg-info/top_level.txt
reading manifest file 'vowpalwabbit.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.dll' under directory 'bin'
warning: no previously-included files matching '*.o' found anywhere in distribution
warning: no previously-included files matching '*.exe' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'vowpalwabbit.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 209, in <module>
tests_require=['tox']
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 119, in build_extension
env['PYTHON_LIBS'] = '-l {}'.format(find_boost())
File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 44, in find_boost
raise Exception('Could not find boost python library')
Exception: Could not find boost python library
----------------------------------------
ERROR: Failed building wheel for vowpalwabbit
-
気になる質問をクリップする
クリップした質問は、後からいつでもマイページで確認できます。
またクリップした質問に回答があった際、通知やメールを受け取ることができます。
クリップを取り消します
-
良い質問の評価を上げる
以下のような質問は評価を上げましょう
- 質問内容が明確
- 自分も答えを知りたい
- 質問者以外のユーザにも役立つ
評価が高い質問は、TOPページの「注目」タブのフィードに表示されやすくなります。
質問の評価を上げたことを取り消します
-
評価を下げられる数の上限に達しました
評価を下げることができません
- 1日5回まで評価を下げられます
- 1日に1ユーザに対して2回まで評価を下げられます
質問の評価を下げる
teratailでは下記のような質問を「具体的に困っていることがない質問」、「サイトポリシーに違反する質問」と定義し、推奨していません。
- プログラミングに関係のない質問
- やってほしいことだけを記載した丸投げの質問
- 問題・課題が含まれていない質問
- 意図的に内容が抹消された質問
- 過去に投稿した質問と同じ内容の質問
- 広告と受け取られるような投稿
評価が下がると、TOPページの「アクティブ」「注目」タブのフィードに表示されにくくなります。
質問の評価を下げたことを取り消します
この機能は開放されていません
評価を下げる条件を満たしてません
質問の評価を下げる機能の利用条件
この機能を利用するためには、以下の事項を行う必要があります。
- 質問回答など一定の行動
-
メールアドレスの認証
メールアドレスの認証
-
質問評価に関するヘルプページの閲覧
質問評価に関するヘルプページの閲覧
0
エラーの続きです
Running setup.py clean for vowpalwabbit
Failed to build vowpalwabbit
Installing collected packages: vowpalwabbit
Running setup.py install for vowpalwabbit ... error
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'"'"'))' install --record /private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-record-ibxjyo_p/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.6
creating build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
copying vowpalwabbit/pyvw.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
copying vowpalwabbit/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
copying vowpalwabbit/sklearn_vw.py -> build/lib.macosx-10.9-x86_64-3.6/vowpalwabbit
running egg_info
creating vowpalwabbit.egg-info
writing vowpalwabbit.egg-info/PKG-INFO
writing dependency_links to vowpalwabbit.egg-info/dependency_links.txt
writing top-level names to vowpalwabbit.egg-info/top_level.txt
writing manifest file 'vowpalwabbit.egg-info/SOURCES.txt'
reading manifest file 'vowpalwabbit.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*' under directory 'src'
warning: no files found matching '*.dll' under directory 'bin'
warning: no previously-included files matching '*.o' found anywhere in distribution
warning: no previously-included files matching '*.exe' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'vowpalwabbit.egg-info/SOURCES.txt'
running build_ext
make: *** No rule to make target `clean'. Stop.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 209, in <module>
tests_require=['tox']
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
_build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 103, in build_extension
prep()
File "/private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/setup.py", line 63, in prep
subprocess.check_call(['make', 'clean'], cwd=path.join(here, 'src', 'python'))
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'clean']' returned non-zero exit status 2.
----------------------------------------
ERROR: 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'"'"'))' install --record /private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-record-ibxjyo_p/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/19/d4w7k_s53wqfmlwh3s_xtq2c0000gn/T/pip-install-cwgdhyza/vowpalwabbit/
投稿
-
回答の評価を上げる
以下のような回答は評価を上げましょう
- 正しい回答
- わかりやすい回答
- ためになる回答
評価が高い回答ほどページの上位に表示されます。
-
回答の評価を下げる
下記のような回答は推奨されていません。
- 間違っている回答
- 質問の回答になっていない投稿
- スパムや攻撃的な表現を用いた投稿
評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。
0
pytnon3の環境ならこちらで動くか試してください
python3 -m pip install vopalwabbit
自分はやった時に pip install --upgrade pip
というメッセージがきたので、 pip のバージョンアップが必要かもしれませんので、バージョンアップもやっておくと良いかと
投稿
-
回答の評価を上げる
以下のような回答は評価を上げましょう
- 正しい回答
- わかりやすい回答
- ためになる回答
評価が高い回答ほどページの上位に表示されます。
-
回答の評価を下げる
下記のような回答は推奨されていません。
- 間違っている回答
- 質問の回答になっていない投稿
- スパムや攻撃的な表現を用いた投稿
評価を下げる際はその理由を明確に伝え、適切な回答に修正してもらいましょう。
15分調べてもわからないことは、teratailで質問しよう!
- ただいまの回答率 88.35%
- 質問をまとめることで、思考を整理して素早く解決
- テンプレート機能で、簡単に質問をまとめられる
質問への追記・修正、ベストアンサー選択の依頼
quickquip
2019/06/27 09:00
どうやってインストールしたPythonかを追記してもらうとよいと思います。
よくわからないなら
pip -V
python -c 'import sys; print(sys.prefix)'
の実行結果があるといいかと。
fiwa
2019/06/28 11:25
エラー内容を見ると、
> Exception: Could not find boost python library
とのことですが、インストールに必要な依存関係は満たしていますか?
https://pypi.org/project/vowpalwabbit/