I am trying to install librosa in my conda environment (Python 3.5.6) but I keep failing to do so due to llvmlite.
It has to be said that I cam failing to do so on two machines: One is a Ubuntu 16.04 the other is a MacBook on macOS Catalina. On both machines I am having the same issue.
See my question on stackoverflow regarding the llvm issue.
I recall installing librosa a while ago where it didn't seem that problematic.
Anyway, am I missing something here?
$ python --version
Python 3.5.6 :: Anaconda, Inc.
$ uname -a
Linux everest10 4.15.0-96-generic #97~16.04.1-Ubuntu SMP Wed Apr 1 03:03:31 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
````
#### Versions
$ python
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 21:41:56)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import platform; print(platform.platform())
Linux-4.15.0-96-generic-x86_64-with-debian-stretch-sid
import sys; print("Python", sys.version)
Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 21:41:56)
[GCC 7.3.0]
import numpy; print("NumPy", numpy.__version__)
NumPy 1.18.3
import scipy; print("SciPy", scipy.__version__)
SciPy 1.4.1
import librosa; print("librosa", librosa.__version__)
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'librosa'
```
I don't think this is a librosa issue, except insofar as we depend on llvmlite (through numba).
Since you're using a conda environment already, why not use the conda packages for llvmlite and numba (and conda-forge for librosa)? Building your own will only cause more trouble, unless you have a strong reason to do so (eg developing llvmlite).
I ran into the same issue recently - the issue is that llvmlite is not supported in Python 3.5
Following up on this, starting in 0.8, librosa will require python 3.6 as well, so this issue should go away by virtue of not letting you install on 3.5. 3.5 is EOL as of september this year: https://devguide.python.org/#status-of-python-branches