python - 如何在 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
解决方案
是的,它正在工作(不知何故)。使用 miniforge 的解决方法,它的工作原理如下:
brew install miniforge
创建并激活新环境:
conda create -n .venv python
conda activate .venv
现在,安装 scikit-lean 和所需的 librosa:
conda install scikit-learn librosa
干杯!
推荐阅读
- sql-server - 将 YYYYMM 转换为 DD-MM-YYY SQL Server
- c# - C# Localized Resources.resx 不允许其他语言
- php - 为什么我在 php 语句中得到错误的绑定值?
- javascript - 动态续集条件
- java - 多条短信没有发送,没有得到回应,
- linux - 如何使用特定字符串作为 bash 中的排序键对文件进行排序?
- sails.js - 测试action2控制器路由响应超测试的存根action2助手
- cloud - Google Cloud Vision AutoML 预测性能不佳
- java - 如何重建 Java Web 应用程序的源文件?
- java - Java runOnUiThread 给出错误 NetworkOnMainThreadException