1.したいこと
librosaのインストール
2.起きている問題
インストール中、llvmliteのビルドで以下のようなエラーが出てしまいます
bash
$ sudo pip3 install librosa Processing /root/.cache/pip/wheels/4c/6e/d7/bb93911540d2d1e44d690a1561871e5b6af82b69e80938abef/librosa-0.7.2-cp37-none-any.whl Requirement already satisfied: numpy>=1.15.0 in /usr/lib/python3/dist-packages (from librosa) (1.16.2) Requirement already satisfied: scipy>=1.0.0 in /usr/lib/python3/dist-packages (from librosa) (1.2.2) Collecting soundfile>=0.9.0 Using cached SoundFile-0.10.3.post1-py2.py3-none-any.whl (21 kB) Requirement already satisfied: joblib>=0.12 in /usr/lib/python3/dist-packages (from librosa) (0.13.0) Requirement already satisfied: audioread>=2.0.0 in /usr/local/lib/python3.7/dist-packages (from librosa) (2.1.8) Processing /root/.cache/pip/wheels/8c/bb/98/c4f490773e74f4cfa78be1618ffb575d42bbe27f1958052303/numba-0.48.0-cp37-cp37m-linux_aarch64.whl Requirement already satisfied: decorator>=3.0.0 in /usr/local/lib/python3.7/dist-packages (from librosa) (4.4.2) Requirement already satisfied: scikit-learn!=0.19.0,>=0.14.0 in /usr/lib/python3/dist-packages (from librosa) (0.20.3) Processing /root/.cache/pip/wheels/fa/c1/56/e0e12c6f7f3d2cdea9712b35136a2d40a7817c6210ec096485/resampy-0.2.2-cp37-none-any.whl Requirement already satisfied: six>=1.3 in /usr/lib/python3/dist-packages (from librosa) (1.12.0) Processing /root/.cache/pip/wheels/c4/91/4f/81fe591804590e3cd010d6c54f251607dc4c61fc5eb5840a51/cffi-1.14.0-cp37-cp37m-linux_aarch64.whl Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from numba>=0.43.0->librosa) (41.1.0) Collecting llvmlite<0.32.0,>=0.31.0dev0 Using cached llvmlite-0.31.0.tar.gz (110 kB) Requirement already satisfied: pycparser in /root/.local/lib/python3.7/site-packages (from cffi>=1.0->soundfile>=0.9.0->librosa) (2.20) Building wheels for collected packages: llvmlite Building wheel for llvmlite (setup.py) ... error ERROR: Command errored out with exit status 1: 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 cwd: /tmp/pip-install-wp633tyb/llvmlite/ Complete output (26 lines): running bdist_wheel /usr/bin/python3 /tmp/pip-install-wp633tyb/llvmlite/ffi/build.py LLVM version... Traceback (most recent call last): File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 105, in main_posix out = subprocess.check_output([llvm_config, '--version']) File "/usr/lib/python3.7/subprocess.py", line 411, in check_output **kwargs).stdout File "/usr/lib/python3.7/subprocess.py", line 488, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.7/subprocess.py", line 800, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 168, in <module> main() File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 158, in main main_posix('linux', '.so') File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 108, in main_posix "to the path for llvm-config" % (llvm_config,)) RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config error: command '/usr/bin/python3' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for llvmlite Running setup.py clean for llvmlite Failed to build llvmlite Installing collected packages: cffi, soundfile, llvmlite, numba, resampy, librosa Running setup.py install for llvmlite ... error ERROR: Command errored out with exit status 1: 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 cwd: /tmp/pip-install-wp633tyb/llvmlite/ Complete output (29 lines): running install running build got version from file /tmp/pip-install-wp633tyb/llvmlite/llvmlite/_version.py {'version': '0.31.0', 'full': 'fe7d985f6421d87f613bd414479d29d912771562'} running build_ext /usr/bin/python3 /tmp/pip-install-wp633tyb/llvmlite/ffi/build.py LLVM version... Traceback (most recent call last): File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 105, in main_posix out = subprocess.check_output([llvm_config, '--version']) File "/usr/lib/python3.7/subprocess.py", line 411, in check_output **kwargs).stdout File "/usr/lib/python3.7/subprocess.py", line 488, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.7/subprocess.py", line 800, in __init__ restore_signals, start_new_session) File "/usr/lib/python3.7/subprocess.py", line 1551, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'llvm-config': 'llvm-config' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 168, in <module> main() File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 158, in main main_posix('linux', '.so') File "/tmp/pip-install-wp633tyb/llvmlite/ffi/build.py", line 108, in main_posix "to the path for llvm-config" % (llvm_config,)) RuntimeError: llvm-config failed executing, please point LLVM_CONFIG to the path for llvm-config error: command '/usr/bin/python3' failed with exit status 1 ---------------------------------------- ERROR: 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)
まだ回答がついていません
会員登録して回答してみよう