【问题标题】:Cannot download Python 3.6 with miniforge (conda-forge) [duplicate]无法使用 miniforge(conda-forge)下载 Python 3.6 [重复]
【发布时间】:2021-11-27 22:18:50
【问题描述】:

我对此有些陌生。我最近用 miniforge 设置了我的 M1 Mac 来运行张量流的加速版本(通过苹果加速器)。因此,我所有的 conda 环境都在 python 3.8+ 中运行。当我尝试为环境安装较低的 3.6 版本时,我收到以下消息:

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

  - python=3.6

或者这个:

% conda search python 
Loading channels: done
# Name                       Version           Build  Channel             
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.8.10 h69cb8a9_0_cpython  conda-forge         
python                        3.8.10 hab31e5c_2_cpython  conda-forge         
python                        3.8.10 hf9733c0_1_cpython  conda-forge         
python                        3.8.11 h35b60ff_4_cpython  pkgs/main           
python                        3.8.11      hbdb9e5c_5  pkgs/main           
python                        3.8.12 hab31e5c_0_cpython  conda-forge         
python                        3.8.12 hab31e5c_1_cpython  conda-forge         
python                        3.8.12 hd949e87_1_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         
python                         3.9.4 h5b20da3_0_cpython  conda-forge         
python                         3.9.5 h54d631c_0_cpython  conda-forge         
python                         3.9.6 h54d631c_0_cpython  conda-forge         
python                         3.9.6 h54d631c_1_cpython  conda-forge         
python                         3.9.6      hc70090a_5  pkgs/main           
python                         3.9.7 h54d631c_0_cpython  conda-forge         
python                         3.9.7 h54d631c_1_cpython  conda-forge         
python                         3.9.7 h54d631c_2_cpython  conda-forge         
python                         3.9.7 h54d631c_3_cpython  conda-forge         
python                         3.9.7 hc0da0df_3_cpython  conda-forge         
python                         3.9.7      hc70090a_1  pkgs/main           
python                        3.10.0 h43b31ca_0_cpython  conda-forge         
python                        3.10.0 h70c1b39_0_cpython  conda-forge         
python                        3.10.0      hbdb9e5c_1  pkgs/main 

是否不能通过 conda-forge 获得较低的 python 包?我怎样才能安装较低版本而无需重新安装 Miniconda 之类的麻烦,安装 miniforge 以与 M1 芯片自适应地运行已经够难了...

我只需要一个运行 python 3.6 的虚拟环境,我可以通过 conda-forge 安装它。或者如果这不起作用,我可以安装某种虚拟机来不干扰我当前的设置吗?在这里我能做的最好的事情是什么?

【问题讨论】:

    标签: python virtualenv conda apple-m1 conda-forge


    【解决方案1】:

    Python 3.6 is not available on M1,不幸的是:“没有计划将支持向后移植到处于其发布周期的仅安全修复阶段的 3.7 和 3.6。”

    this answer,有人建议用Nix,你可以看看。

    我还用using miniconda 找到了一些更新的解决方案,也许你可以尝试一下。

    【讨论】:

    • 谢谢,没有看到关于它的其他问题。会试试的!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-05-06
    • 1970-01-01
    • 2017-08-02
    • 2019-04-04
    • 2017-05-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多