0

While importing librosa, I am facing this error, even after installing numba distinctively. Can anyone solve this error quickly???

I have tried uninstalling librosa and then reinstalling it again 5 times. Also tried installing numba but it just shows "ModuleNotFoundError: No module named 'numba.decorators'".

y_soul
  • 1
  • Have you tried using a virtual environment? Essentially, this would be similar to a clean install of Python – moo Apr 28 '23 at 20:03

1 Answers1

2

You have incompatible versions of librosa and numba.

For example librosa version <= 0.7.2 will have this issue if used with numba >= 0.50.0. References: Import librosa gives "no module named numba.decorators", how to solve?, https://github.com/librosa/librosa/issues/1160

But librosa 0.7.x is very old, so the first step would be to attempt to upgrade librosa. pip install librosa --upgrade

Jon Nordby
  • 5,494
  • 1
  • 21
  • 50