简体   繁体   English

在 conda-forge 中找不到旧版本的 Python

[英]Older versions of Python not found in conda-forge

I am trying to install Python 3.6.15 in a Conda virtual environment using conda install -c conda-forge python=3.6.15 but keep getting the following error:我正在尝试使用conda install -c conda-forge python=3.6.15但不断收到以下错误:

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

  - python=3.6.15

Current channels:

  - https://conda.anaconda.org/conda-forge/osx-arm64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/osx-arm64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/osx-arm64
  - https://repo.anaconda.com/pkgs/r/noarch

I've tried appending conda-forge to my channels, to no avail.我尝试将 conda-forge 附加到我的频道,但无济于事。 Also, creating a new virtual environment with conda create -n OldTest python=3.6.15 anaconda gives the same error.此外,使用conda create -n OldTest python=3.6.15 anaconda创建新的虚拟环境也会出现相同的错误。 How might I install my desired version of Python using Conda?如何使用 Conda 安装我想要的 Python 版本?

You will need to have an environment that runs non-natively (ie x64 through rosetta):您将需要一个非本地运行的环境(即 x64 到 rosetta):

conda create -n oldTF
conda activate oldTF
conda config --env --set subdir osx-64
conda install python tensorflow=x.x #Only put the specific packages that you need here. Probably no reason to inlcude all of anaconda

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM