首页 > 解决方案 > 将 Python 3.7 添加到 Anaconda

问题描述

我目前的 anaconda 只有 python 3.8 和 3.9。

python                         3.8.5 h05baefb_8_cpython  conda-forge         
python                         3.8.6 h12cc5a1_1_cpython  conda-forge         
python                         3.8.6 h12cc5a1_2_cpython  conda-forge         
python                         3.8.6 h12cc5a1_3_cpython  conda-forge         
python                         3.8.6 h12cc5a1_4_cpython  conda-forge         
python                         3.8.6 h12cc5a1_5_cpython  conda-forge         
python                         3.8.6 h3098bc4_0_cpython  conda-forge         
python                         3.8.8 h12cc5a1_0_cpython  conda-forge         
python                         3.9.0 h4b4120c_5_cpython  conda-forge         
python                         3.9.0 hd001b3a_0_cpython  conda-forge         
python                         3.9.0 hd001b3a_1_cpython  conda-forge         
python                         3.9.0 hd001b3a_2_cpython  conda-forge         
python                         3.9.0 hd001b3a_3_cpython  conda-forge         
python                         3.9.0 hf1b0709_4_cpython  conda-forge         
python                      3.9.1rc1 h4b4120c_0_cpython  conda-forge         
python                      3.9.1rc1 h4b4120c_1_cpython  conda-forge         
python                         3.9.1 h4b4120c_0_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_1_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_2_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_3_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_4_cpython  conda-forge         
python                         3.9.1 hcbd9b3a_5_cpython  conda-forge         
python                         3.9.2 hcbd9b3a_0_cpython  conda-forge

这是我输入时输出的内容conda search --full-name python

现在我想安装 tensorflowjs 但为此我需要 tensorflow,但pip install tensorflow给了我这个错误 ERROR: Could not find a version that satisfies the requirement tensorflow ERROR: No matching distribution found for tensorflow

我的虚拟环境中的 python 版本是 3.8.8,但我认为我需要使用较低版本,但是当尝试使用它安装 python 3.7 时,conda install -c anaconda python=3.7它给了我这个


  - python=3.7

Current channels:

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

我不知道如何在我的 conda 中获取 python 3.7,请帮忙!

标签: pythonpipconda

解决方案


所以我解决了这个问题......我使用https://nektony.com/mac-app-cleaner从我的 Mac 中完全删除了 Anaconda ,我的频道完全坏了,但现在我可以使用以前的 Python 版本。另外我认为它们被破坏的原因是因为我确实遵循了为 M1 Mac 安装 tensorflow fork 的教程,这可能已经破坏了一些东西。


推荐阅读