首页 > 解决方案 > 如何解决 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 频道中可用!为什么不能从命令行安装?

标签: pythoncondasymfit

解决方案


更新: 此答案是在 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


推荐阅读