如何在 M1 Mac 上安装 Librosa?

时间:2021-02-22 06:01:52

标签: python macos conda librosa apple-m1

是否可以在 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

1 个答案:

答案 0 :(得分:1)

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

brew install miniforge

创建并激活新环境:

conda create -n .venv python
conda activate .venv

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

conda install scikit-learn librosa

干杯!