Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python3中的librosa模块导入抛出警告_Python - Fatal编程技术网

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

我已经使用命令在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.
这对我很有用:

pip3 install numba==0.48.0
这对我很有用:

pip3 install numba==0.48.0
  • 在windows的cmd中写入以下内容: pip安装librosa声音文件numpy sklearn pyaudio
  • 附言: 如果您已经安装了例如“numpy和sklearn”,请写下以下内容: pip安装librosa声音文件pyaudio(安装您没有的)

    在同一CMD中,请执行以下操作:

  • pip卸载工具学习

  • pip安装scikit学习==0.19.1

  • pip安装numba==0.48.0

  • 你应该从字面上做警告建议,用户可能想考虑他们是否想在长期的NUBBA版本中。理想情况下,librosa应该更新为使用'numba.core.decorators'