【问题标题】:How to install Librosa on M1 Mac?如何在 M1 Mac 上安装 Librosa?
【发布时间】:2021-02-22 06:01:52
【问题描述】:

是否可以在 M1 Mac 上安装 Librosa?我通过conda install -c conda-forge librosa (miniforge) 尝试了 pip 和 Conda,但收到此错误:


# conda install -c conda-forge librosa
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                          

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

【问题讨论】:

标签: python macos conda librosa apple-m1


【解决方案1】:

是的,它正在工作(不知何故)。使用 miniforge 的解决方法,它的工作原理如下:

brew install miniforge

创建并激活新环境:

conda create -n .venv python
conda activate .venv

现在,安装 scikit-lean 和所需的 librosa:

conda install scikit-learn librosa

干杯!

【讨论】:

    猜你喜欢
    • 2021-08-08
    • 2022-06-11
    • 2022-08-02
    • 1970-01-01
    • 2021-05-17
    • 2021-06-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多