无法在osx-arm64上安装Python 3.7 [英] Cannot install Python 3.7 on osx-arm64

查看:107
本文介绍了无法在osx-arm64上安装Python 3.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

推荐答案

在Apple Silicon上市时,Python3.8已经发布了大约一年,osx-arm64的Python3.7版本从来不是Conda Forge常规构建矩阵的一部分。

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

从长远来看,您可以try requestingpython-feedstock包括osx-arm64的3.7内部版本。然而,3.7.12(9月2021)从技术上讲是最终的特性版本,现在已经进入了仅限维护阶段(参见PEP 537)。此外,不会为osx-arm64构建其他构建特定于Python版本的变体的包,因此即使有python=3.7,包也不会存在(至少不会通过Conda)。基本上,我不会打赌任何人会接受这一点。

这篇关于无法在osx-arm64上安装Python 3.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆