Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. (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.

like image 954
Simon Avatar asked Sep 16 '25 20:09

Simon


1 Answers

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.

like image 107
Michael S. Avatar answered Sep 18 '25 20:09

Michael S.