I've been trying to install librosa on my raspberry pi 3 model B for quite some time now.
my python version is 3.7.3.
pip version is 21.0.
operating system is the image from the official raspberry pi site of raspbian.
I've done:
sudo apt update/upgrade
so the os should be up to date.
what I do is:
python3 -m pip install librosa
I would really appreciate if anyone could help me understand the error message and maybe even fix it.
the error I get is:
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-h3d5chkd
cwd: /tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/
Complete output (26 lines):
running bdist_wheel
/usr/bin/python3 /tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, 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-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/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: llvmlite, threadpoolctl, packaging, numba, joblib, cffi, soundfile, scikit-learn, resampy, pooch, audioread, 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-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ew358fr4/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/llvmlite
cwd: /tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/
Complete output (29 lines):
running install
running build
got version from file /tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/llvmlite/_version.py {'version': '0.35.0', 'full': 'ea23b026930cc00824c907172383f54c9d438e6b'}
running build_ext
/usr/bin/python3 /tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py
LLVM version... Traceback (most recent call last):
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py", line 105, in main_posix
out = subprocess.check_output([llvm_config, '--version'])
File "/usr/lib/python3.7/subprocess.py", line 395, in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, 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-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py", line 191, in <module>
main()
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py", line 181, in main
main_posix('linux', '.so')
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/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-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ew358fr4/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/pi/.local/include/python3.7m/llvmlite Check the logs for full command output.
question from:
https://stackoverflow.com/questions/65944663/trying-to-install-librosa-package-on-raspberry-pi3