如何解决尝试在树莓派 pi3 上安装 librosa 包
我已经尝试在我的 raspberry pi 3 B 型上安装 librosa 已经有一段时间了。
我的 python 版本是 3.7.3。
pip 版本是 21.0。
操作系统是raspbian官方raspberry pi站点的镜像。
我已经完成了:
sudo apt update/upgrade
所以操作系统应该是最新的。
我所做的是:
python3 -m pip install librosa
如果有人能帮助我理解错误消息甚至修复它,我将不胜感激。
我得到的错误是:
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('"'"'\r\n'"'"','"'"'\n'"'"');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,'"'"'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",in main_posix
out = subprocess.check_output([llvm_config,'--version'])
File "/usr/lib/python3.7/subprocess.py",in check_output
**kwargs).stdout
File "/usr/lib/python3.7/subprocess.py",in run
with Popen(*popenargs,**kwargs) as process:
File "/usr/lib/python3.7/subprocess.py",in __init__
restore_signals,start_new_session)
File "/usr/lib/python3.7/subprocess.py",in _execute_child
raise child_exception_type(errno_num,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",in <module>
main()
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py",in main
main_posix('linux','.so')
File "/tmp/pip-install-nuer71it/llvmlite_02b4ea4057bb44d8a2fa1003b79b354f/ffi/build.py",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,'"'"'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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。