【问题标题】:Cannot install Python 3.7 on osx-arm64无法在 osx-arm64 上安装 Python 3.7
【发布时间】:2021-12-02 19:50:46
【问题描述】:

我正在尝试使用 Conda 使用 Python 3.7 创建一个新环境,例如:

conda create -n qnn python=3.7 

我收到以下错误:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python==3.7

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/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.

为什么 Python 3.7 显然不可用?


系统详情

这是在运行 macOS 的 Apple Silicon (osx-arm64) 机器上。

【问题讨论】:

  • 您的问题是什么?您是否使用过 anaconda.org 上的建议搜索选项或命令行中的conda search python 来查看可用的版本?
  • 对 arm64 的支持在 conda-forge 上相对较新。我觉得问题在于您请求了旧版本的 python 而 conda-forge 不支持它。此外,我认为现在这是一个有效且明确的问题,不值得结束。

标签: python conda conda-forge


【解决方案1】:

由于 Python 3.8 在 Apple Silicon 上市时已经发布了大约一年,用于 osx-arm64 的 Python 3.7 构建从未成为 Conda Forge 常规构建矩阵的一部分。

在 Apple Silicon 系统上使用 3.7 的直接替代方案是使用 Rosetta 模拟 x86_64 或使用容器系统,例如 Docker。

从长远来看,您可以try requesting python-feedstock 包含 osx-arm64 的 3.7 版本。但是,3.7.12(2021 年 9 月)在技术上是最终功能版本,现在已进入仅维护阶段(请参阅 PEP 537)。此外,不会为 osx-arm64 构建其他构建特定于 Python 版本的变体的包,因此即使有 python=3.7,这些包也不会存在(至少不会通过 Conda )。基本上,我不会打赌有人会接受这个。

【讨论】:

    猜你喜欢
    • 2019-04-02
    • 2018-07-27
    • 1970-01-01
    • 2020-02-19
    • 2020-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多