【问题标题】:Librosa installation pip failLibrosa 安装 pip 失败
【发布时间】:2021-07-14 18:42:16
【问题描述】:

我试图在mac终端上通过pip install librosa安装librosa,pip3也有同样的问题。当我尝试安装 scikit-learn 时,它也会卡住。

不超过:

Collecting librosa
  Using cached librosa-0.8.1-py3-none-any.whl (203 kB)
Collecting packaging>=20.0
  Using cached packaging-21.0-py3-none-any.whl (40 kB)
Requirement already satisfied: numpy>=1.15.0 in /opt/homebrew/lib/python3.9/site-packages (from librosa) (1.21.0)
Requirement already satisfied: scipy>=1.0.0 in /opt/homebrew/lib/python3.9/site-packages (from librosa) (1.7.0)
Collecting numba>=0.43.0
  Using cached numba-0.53.1.tar.gz (2.2 MB)
Collecting resampy>=0.2.2
  Using cached resampy-0.2.2.tar.gz (323 kB)
Requirement already satisfied: soundfile>=0.10.2 in /opt/homebrew/lib/python3.9/site-packages (from librosa) (0.10.3.post1)
Collecting scikit-learn!=0.19.0,>=0.14.0
  Using cached scikit-learn-0.24.2.tar.gz (7.5 MB)
  Installing build dependencies ... \

我对此很陌生,请帮助我只是想画一些频谱图。

python--版本 Python 2.7.16

python3 --version Python 3.9.6

pip --version 来自 /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9) 的 pip 21.1.3

【问题讨论】:

    标签: python installation error-handling pip librosa


    【解决方案1】:

    在虚拟环境中工作可能对您有用。如果您尝试使用 python 3.9 安装,则可能存在许多依赖问题,因此使用较低版本也可能会解决您的问题。但是,请尝试使用 conda 环境,因为这可以让您更轻松地跟踪安装包等。这里是 install instructions

    安装后可以创建一个较低python版本的conda环境:

    conda create -n "py38" python=3.8 ipython
    

    激活环境:

    conda activate py38 
    

    安装 librosa:

    conda install -c conda-forge librosa
    

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-09-07
    • 2018-10-23
    • 2016-09-25
    • 2021-02-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多