DeprecationWarning: np.float is a deprecated alias for the builtin float.
报错:DeprecationWarning: np.float is a deprecated alias for the builtin float. To silence this warning, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
环境中 librosa==0.7.0
解决方案:将numpy版本下调只1.19.3
解决numpy警告:DeprecationWarning与librosa环境冲突
在使用librosa库时遇到`DeprecationWarning:np.float is a deprecated alias for the builtin float.`警告。该警告源于numpy版本过高,建议将numpy版本回退到1.19.3以消除警告。这样做不会改变任何行为且是安全的。如果你需要numpy的浮点类型,应使用np.float64。
2024

被折叠的 条评论
为什么被折叠?



