在python上导入Librosa时出错

时间:2017-03-20 18:33:44

标签: python import compiler-errors librosa

我正在努力导入Librosa库进行声音分析。当我进入

import librosa

我收到以下错误

    Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "c:\python35\lib\site-packages\librosa\__init__.py", line 13, in <module>
    from . import decompose
  File "c:\python35\lib\site-packages\librosa\decompose.py", line 19, in <module>
    import sklearn.decomposition
  File "c:\python35\lib\site-packages\sklearn\__init__.py", line 57, in <module>
    from .base import clone
  File "c:\python35\lib\site-packages\sklearn\base.py", line 12, in <module>
    from .utils.fixes import signature
  File "c:\python35\lib\site-packages\sklearn\utils\__init__.py", line 11, in <module>
    from .validation import (as_float_array,
  File "c:\python35\lib\site-packages\sklearn\utils\validation.py", line 18, in <module>
    from ..utils.fixes import signature
  File "c:\python35\lib\site-packages\sklearn\utils\fixes.py", line 406, in <module>
    if np_version < (1, 12, 0):
TypeError: unorderable types: str() < int()

我正在尝试在Windows操作系统上完成所有操作,Python 3.5 64位。我需要安装其他一些库吗?我已经安装了许多其他库,如numpy,matplotlib,scipy和其他几个必不可少的库。请解释一下:

1 个答案:

答案 0 :(得分:0)

尝试使用:pip install librosa

function x(str) {
    return str.match(/\{\{(\w+)?\}\}/g).length > 1
}

然后安装其他libs中的librosa。

PS。看起来我们正在研究同一个项目?