質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
bash

bash(Bourne-again-Shell)は sh(Bourne Shell)のインプリメンテーションに様々な機能が追加されたシェルです。LinuxやMac OS XではBashはデフォルトで導入されています。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

Q&A

解決済

1回答

15399閲覧

llvmliteがインストールできない

Luke02561

総合スコア404

bash

bash(Bourne-again-Shell)は sh(Bourne Shell)のインプリメンテーションに様々な機能が追加されたシェルです。LinuxやMac OS XではBashはデフォルトで導入されています。

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Ubuntu

Ubuntuは、Debian GNU/Linuxを基盤としたフリーのオペレーティングシステムです。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

pip

pipとは、Pythonを用いて書かれているパッケージソフトのインストールや管理を行うためのパッケージマネジメントシステムです。pipを使う主なメリットは、コマンドラインインターフェースにて容易にPythonパッケージソフトをインストール可能だという点です。

0グッド

0クリップ

投稿2020/03/26 12:06

1.したいこと

librosaのインストール

2.起きている問題

インストール中、llvmliteのビルドで以下のようなエラーが出てしまいます

bash

1$ sudo pip3 install librosa 2Processing /root/.cache/pip/wheels/4c/6e/d7/bb93911540d2d1e44d690a1561871e5b6af82b69e80938abef/librosa-0.7.2-cp37-none-any.whl 3Requirement already satisfied: numpy>=1.15.0 in /usr/lib/python3/dist-packages (from librosa) (1.16.2) 4Requirement already satisfied: scipy>=1.0.0 in /usr/lib/python3/dist-packages (from librosa) (1.2.2) 5Collecting soundfile>=0.9.0 6 Using cached SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB) 7Requirement already satisfied: joblib>=0.12 in /usr/lib/python3/dist-packages (from librosa) (0.13.0) 8Requirement already satisfied: audioread>=2.0.0 in /usr/local/lib/python3.7/dist-packages (from librosa) (2.1.8) 9Processing /root/.cache/pip/wheels/8c/bb/98/c4f490773e74f4cfa78be1618ffb575d42bbe27f1958052303/numba-0.48.0-cp37-cp37m-linux_aarch64.whl 10Requirement already satisfied: decorator>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from librosa) (4.4.2) 11Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in /usr/lib/python3/dist-packages (from librosa) (0.20.3) 12Processing /root/.cache/pip/wheels/fa/c1/56/e0e12c6f7f3d2cdea9712b35136a2d40a7817c6210ec096485/resampy-0.2.2-cp37-none-any.whl 13Requirement already satisfied: six>=1.3 in /usr/lib/python3/dist-packages (from librosa) (1.12.0) 14Processing /root/.cache/pip/wheels/c4/91/4f/81fe591804590e3cd010d6c54f251607dc4c61fc5eb5840a51/cffi-1.14.0-cp37-cp37m-linux_aarch64.whl 15Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from numba>=0.43.0->librosa) (41.1.0) 16Collecting llvmlite<0.32.0,>=0.31.0dev0 17 Using cached llvmlite-0.31.0.tar.gz (110 kB) 18Requirement already satisfied: pycparser in /root/.local/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.9.0->librosa) (2.20) 19Building wheels for collected packages: llvmlite 20 Building wheel for llvmlite (setup.py) ... error 21 ERROR: Command errored out with exit status 1: 22 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wp633tyb/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wp633tyb/llvmlite/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 /tmp/pip-wheel-s8bsk7qg 23 cwd: /tmp/pip-install-wp633tyb/llvmlite/ 24 Complete output (26 lines): 25 running bdist_wheel 26 /usr/bin/python3 /tmp/pip-install-wp633tyb/llvmlite/ffi/build.py 27 LLVM version... Traceback (most recent call last): 28 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 105, in main_posix 29 out = subprocess.check_output([llvm_config, '--version']) 30 File "/usr/lib/python3.7/subprocess.py", line 411, in check_output 31 **kwargs).stdout 32 File "/usr/lib/python3.7/subprocess.py", line 488, in run 33 with Popen(*popenargs, **kwargs) as process: 34 File "/usr/lib/python3.7/subprocess.py", line 800, in __init__ 35 restore_signals, start_new_session) 36 File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child 37 raise child_exception_type(errno_num, err_msg, err_filename) 38 FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config' 39 40 During handling of the above exception, another exception occurred: 41 42 Traceback (most recent call last): 43 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 168, in <module> 44 main() 45 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 158, in main 46 main_posix('linux', '.so') 47 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 108, in main_posix 48 "to the path for llvm-config" % (llvm_config,)) 49 RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config 50 error: command '/usr/bin/python3' failed with exit status 1 51 ---------------------------------------- 52 ERROR: Failed building wheel for llvmlite 53 Running setup.py clean for llvmlite 54Failed to build llvmlite 55Installing collected packages: cffi, soundfile, llvmlite, numba, resampy, librosa 56 Running setup.py install for llvmlite ... error 57 ERROR: Command errored out with exit status 1: 58 command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wp633tyb/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wp633tyb/llvmlite/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-2htuubo0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/llvmlite 59 cwd: /tmp/pip-install-wp633tyb/llvmlite/ 60 Complete output (29 lines): 61 running install 62 running build 63 got version from file /tmp/pip-install-wp633tyb/llvmlite/llvmlite/_version.py {'version': '0.31.0', 'full': 'fe7d985f6421d87f613bd414479d29d912771562'} 64 running build_ext 65 /usr/bin/python3 /tmp/pip-install-wp633tyb/llvmlite/ffi/build.py 66 LLVM version... Traceback (most recent call last): 67 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 105, in main_posix 68 out = subprocess.check_output([llvm_config, '--version']) 69 File "/usr/lib/python3.7/subprocess.py", line 411, in check_output 70 **kwargs).stdout 71 File "/usr/lib/python3.7/subprocess.py", line 488, in run 72 with Popen(*popenargs, **kwargs) as process: 73 File "/usr/lib/python3.7/subprocess.py", line 800, in __init__ 74 restore_signals, start_new_session) 75 File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child 76 raise child_exception_type(errno_num, err_msg, err_filename) 77 FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config' 78 79 During handling of the above exception, another exception occurred: 80 81 Traceback (most recent call last): 82 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 168, in <module> 83 main() 84 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 158, in main 85 main_posix('linux', '.so') 86 File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 108, in main_posix 87 "to the path for llvm-config" % (llvm_config,)) 88 RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config 89 error: command '/usr/bin/python3' failed with exit status 1 90 ---------------------------------------- 91ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wp633tyb/llvmlite/setup.py'"'"'; __file__='"'"'/tmp/pip-install-wp633tyb/llvmlite/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-2htuubo0/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/llvmlite Check the logs for full command output.

これはどのような意味なのでしょうか。
解決方法はありますか?

3.実行環境

UbuntuMATE
python 3.7.5
(RuspberryPi 4B 4GB)

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

hoshi-takanori

2020/03/29 02:13

llvm-config というコマンドが見当たらないと言ってるので、sudo apt-get install llvm とかでインストールするといいのでは。
guest

回答1

0

ベストアンサー

今さらですが、下記コマンドでllvmliteのビルド無しでインストールできると思います。

console

1$ sudo apt install python3-llvmlite

python3-llvmlite

投稿2020/04/23 22:50

PINTO

総合スコア351

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問