python3中的librosa模块导入抛出警告
我已经使用命令在python3中安装了模块librosa,但是当我尝试导入此模块时,它会显示以下警告python3中的librosa模块导入抛出警告,python,Python,我已经使用命令在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 optio
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.
这对我很有用:
pip3 install numba==0.48.0
这对我很有用:
pip3 install numba==0.48.0
你应该从字面上做警告建议,用户可能想考虑他们是否想在长期的NUBBA版本中。理想情况下,librosa应该更新为使用'numba.core.decorators'