简体   繁体   中英

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:

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. Also, creating a new virtual environment with conda create -n OldTest python=3.6.15 anaconda gives the same error. How might I install my desired version of Python using Conda?

You will need to have an environment that runs non-natively (ie x64 through 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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