简体   繁体   English

在树莓派 4 上安装 librosa,llvmlite 的轮子出错

[英]install librosa on raspberry pi 4, error with the wheel of llvmlite

Im working on raspberry pi 4, with Python3 and I want to install librosa.我正在使用 Python3 开发 raspberry pi 4,我想安装 librosa。 ( pip3 install librosa ) ( pip3 install librosa )

Previously I installed llvm version 7.0.1之前我安装的是 llvm 7.0.1 版

Following the Compatibility I install llvmlite https://pypi.org/project/llvmlite/按照兼容性我安装 llvmlite https://pypi.org/project/llvmlite/

$ LLVM_CONFIG=/usr/bin/llvm-config pip3 install llvmlite=0.32.0

That block during the instalation of librosa or numba在安装 librosa 或 numba 期间的那个块

Building wheel for llvmlite (setup.py) ... error

If someone has advice about how solve it, thank you to give me.如果有人对如何解决它有建议,谢谢你给我。

I got mine running by installing llvmlite==0.31.0 , numba==0.48.0 , librosa==0.6.3 , colorama==0.3.9 .我通过安装llvmlite==0.31.0 , numba==0.48.0 , librosa==0.6.3 , colorama==0.3.9

Command:命令:

LLVM_CONFIG=/usr/bin/llvm-config pip3 install llvmlite=0.31.0 numba==0.48.0 colorama==0.3.9 librosa==0.6.3

Note : colorama is used only to show colored output in the console, if the package causes you issues try removing it but otherwise keep it otherwise you will have errors while importing the module.注意colorama仅用于在控制台中显示彩色输出,如果包导致您出现问题,请尝试删除它,否则保留它,否则在导入模块时会出错。

Thanks to Michael S. !感谢迈克尔 S.!

But actually the command should be:但实际上命令应该是:

LLVM_CONFIG=/usr/bin/llvm-config pip3 install llvmlite==0.31.0 numba==0.48.0 colorama==0.3.9 librosa==0.6.3

it should be == in:它应该是 == 在:

llvmlite=0.31.0 llvmlite=0.31.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM