1

我正在尝试使用 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 ) 机器上。

4

1 回答 1

2

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

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

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

于 2021-12-03T19:51:47.057 回答