尝试在树莓派 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 (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...