如何在 M1 Mac 上安装 Librosa?

Pav*_*jna 3 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
Run Code Online (Sandbox Code Playgroud)

小智 7

是的,它正在工作(以某种方式)。使用 miniforge 的解决方法,它的工作原理如下:

brew install miniforge
Run Code Online (Sandbox Code Playgroud)

创建并激活新环境:

conda create -n .venv python
conda activate .venv
Run Code Online (Sandbox Code Playgroud)

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

conda install scikit-learn librosa
Run Code Online (Sandbox Code Playgroud)

干杯!