python - 如何解决 conda 问题:PackagesNotFoundError: 当前频道无法提供以下软件包
问题描述
我正在尝试使用 miniforge 在 MacBook Pro M1 上安装 symfit,以实现处理器兼容性,pip3 install symfit
从而导致错误。但是,在运行时conda install -c conda-forge symfit
,我得到:
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- symfit
Current channels:
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
- https://conda.anaconda.org/conda/osx-arm64
- https://conda.anaconda.org/conda/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
这样做时,我发现 symfit 在 conda-forge 频道中可用!为什么不能从命令行安装?
解决方案
更新:
此答案是在 OP 更改为使用正确conda install -c conda-forge symfit
命令之前发布的!
- 结果在问题时
symfit
没有“OSX_arm64”的构建,这就是命令失败的原因
因为conda install
将尝试从默认通道安装模块...
您必须明确告诉 conda 使用 conda-forge!
conda install -c conda-forge symfit
-> 检查文档!!https://symfit.readthedocs.io/en/stable/installation.html
推荐阅读
- wordpress - 同时注册两个不同的wordpress
- php - PHP APCU 操作是原子的吗
- c - C 套接字发送和接收
- docusignapi - Docusign PHP 添加多个签名选项卡
- javascript - React Native 在单独的方法文件中更改 Redux 状态
- sql - 计算最大并发用户会话数
- .net - 我是否定义了自己的端点来支持 CORS OPTIONS 请求
- arrays - 我怎样才能打开一个 GenericArray
成相同长度的数组? - ios - 未找到 Xcode 模拟器符号:_SimCarPlayPropertyKeyHasBackButton
- moq - 以最小起订量提供正数