python - 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.
解决方案
这对我有用:
pip3 install numba==0.48.0
推荐阅读
- android - 如何设计只会旋转外部布局而不旋转内部布局的布局?
- aws-sdk - 如何使用 aws-sdk net 自定义端点?
- javascript - 筛选表后如何重置结果
- javascript - 多个递归函数的控制流如何工作
- excel - 在工作簿和工作表之间复制
- python - 无法分配给 Python 子模块中的全局变量
- javascript - 如何根据不是数组的对象查询 mongo 查找/聚合
- reactjs - 如何在 TypeScript/React 项目中为绝对路径设置 .tsconfig?
- css - 在 sass 文件的指南针助手中使用图像宽度
- blockchain - 关于区块链的具体问题