Tried to install librosa on Jetso AGX but failed

I tried to install librosa on AGX, and before install librosa I installed llvm, llvmlite and numba first.
But I encountered this problem when I installed numba.
how can i solve it? Thanks a lot!
My AXG is running on L4T 32.5.1[ Jetpack4.5.1 ]

erichong@erichong-AGX:~$ pip3 install numba
Defaulting to user installation because normal site-packages is not writeable
Collecting numba
Using cached numba-0.53.1.tar.gz (2.2 MB)
Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in ./.local/lib/python3.6/site-packages (from numba) (0.36.0)
Requirement already satisfied: numpy>=1.15 in ./.local/lib/python3.6/site-packages (from numba) (1.19.5)
Requirement already satisfied: setuptools in ./.local/lib/python3.6/site-packages (from numba) (56.2.0)
Building wheels for collected packages: numba
Building wheel for numba (setup.py) … error
ERROR: Command errored out with exit status -4:
command: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /tmp/pip-wheel-7xy5b1_h
cwd: /tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/
Complete output (0 lines):

ERROR: Failed building wheel for numba
Running setup.py clean for numba
ERROR: Command errored out with exit status -4:
command: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ clean --all
cwd: /tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1
Complete output (0 lines):

ERROR: Failed cleaning build dir for numba
Failed to build numba
Installing collected packages: numba
Running setup.py install for numba … error
ERROR: Command errored out with exit status -4:
command: /usr/bin/python3 -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’“‘))’ install --record /tmp/pip-record-i2pz2ohf/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/erichong/.local/include/python3.6m/numba
cwd: /tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/
Complete output (0 lines):
----------------------------------------
ERROR: Command errored out with exit status -4: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '”‘"’/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-u_306dpe/numba_3e08439b7b80417ca7e897abd2cdf4f1/setup.py’“'”‘;f = getattr(tokenize, ‘"’“‘open’”’“‘, open)(file) if os.path.exists(file) else io.StringIO(’”‘“‘from setuptools import setup; setup()’”’“‘);code = f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-i2pz2ohf/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/erichong/.local/include/python3.6m/numba Check the logs for full command output.

Hi @erichong860711, if you use the l4t-ml container, it already has numba and llvm/ect pre-installed, so you can do a simple pip3 install librosa in it. You can use nvcr.io/nvidia/l4t-ml:r32.5.0-py3 on L4T R32.5.1. I tested that this works:

sudo docker run -it --rm --runtime nvidia --network host nvcr.io/nvidia/l4t-ml:r32.5.0-py3
pip3 install librosa    # inside the container

Regarding the error you are getting here, I’m not sure what it is because it doesn’t seem to contain the actual error. If you don’t want to use container, can you run the command as pip3 install numba --verbose? Also you can check the procedure I follow to install numba/llvm in the l4t-ml Dockerfile - these are similar commands to what you would run outside of Docker.

The container is worked for my case!
Thanks for solving my problem!!