问题描述
我正在尝试使用 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