python - 如何在 M1 Mac 上安装 Librosa?

标签 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

最佳答案

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

brew install miniforge

创建并激活新环境:

conda create -n .venv python
conda activate .venv

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

conda install scikit-learn librosa

干杯!

关于python - 如何在 M1 Mac 上安装 Librosa?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66310721/

相关文章:

python - python 术语的澄清

macos - OSX 上 x86_64 的 mmap

macos - 具有真实证书的 Ocj-C 安全套接字服务器 - SSL 协议(protocol)错误(基于 GCDAsyncSockets)

python 随机播种是确定性的,但它不应该是

Python获取一周的开始和结束日期

macos - 深色背景上的浅色文本在 Firefox for Mac 上过于粗体

python - 我安装了多个 Ipython 内核,但此后我无法导入 numpy、pandas

python - 在 Jupyter Notebook 中使用 conda 导入袖扣

python - conda 中的环境是 pyenv 的包装器吗?

Python套接字: WinError 10022