---
# System prepended metadata

title: Solving errors of librosa
tags: [課程共筆]

---


There Might be
```
AttributeError: module 'numpy' has no attribute 'long'
```
When importing numba when importing librosa.

It's because the numba version was old in our system, which depends on an older version of numpy.

# Solution
We have to re-install a newer version of numba for librosa
1. Update conda
```
conda update conda
```

2. uninstall numba
```
pip uninstall -y numba
pip3 uninstall -y numba
```

3. check if uninstalled
```
conda list numba
```

4. install llvmlite ```0.41<= version <0.42```
```
pip uninstall -y llvmlite
conda install -y -c numba/label/dev llvmlite
```
>[reference](https://buildmedia.readthedocs.org/media/pdf/llvmlite/latest/llvmlite.pdf)

5. Install Numba from numba channel
```
pip install git+https://github.com/numba/numba.git
```