首页 > 解决方案 > 如何在 M1 Mac 上安装 Librosa?

问题描述

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

标签: pythonmacoscondalibrosaapple-m1

解决方案


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

brew install miniforge

创建并激活新环境:

conda create -n .venv python
conda activate .venv

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

conda install scikit-learn librosa

干杯!


推荐阅读