首页 > 解决方案 > python3中的librosa模块导入引发警告

问题描述

我已经使用命令在 python3 中安装了模块 librosa,但是当我尝试导入此模块时,它显示以下警告

Warning (from warnings module):
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/librosa/util/decorators.py", line 9
    from numba.decorators import jit as optional_jit
NumbaDeprecationWarning: An import was requested from a module that has moved location.
Import requested from: 'numba.decorators', please update to use 'numba.core.decorators' or pin to Numba version 0.48.0. This alias will not be present in Numba version 0.50.0.

标签: python

解决方案


这对我有用:

pip3 install numba==0.48.0

推荐阅读