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

3.1k Views Asked by At

Im working on raspberry pi 4, with Python3 and I want to install librosa. (pip3 install librosa)

Previously I installed llvm version 7.0.1

Following the Compatibility I install 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

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

If someone has advice about how solve it, thank you to give me.

2

There are 2 best solutions below

2
On BEST ANSWER

I got mine running by installing llvmlite==0.31.0, numba==0.48.0, librosa==0.6.3, colorama==0.3.9.

Command:

# specify a valid dependency tree with pi compatibility
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.

0
On

Thanks to Michael 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