zoukankan      html  css  js  c++  java
  • python=2.7not available from current channels

    现象

    • 使用miniconda3创建python2的环境
    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=2.7
    
    Current channels:
    
      - 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
    
    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 2 官方已经停止维护与更新。
    • 官方仓库中已没有python2相关包
    • conda默认channel检索不到python2.7导致

    解决方案

    • 从anaconda2的配置中,查找到可用channel:https://repo.continuum.io/pkgs/free/osx-64
    • 指定channel url更新环境即可
    conda create -c 'https://repo.continuum.io/pkgs/free/osx-64' -n py2 python=2.7
    
    苏轶然suanec -
    http://www.cnblogs.com/suanec/
    友链:marsggbo
    声援博主:如果您觉得文章对您有帮助,可以点击文章右下角【推荐】一下。您的鼓励是博主的最大动力!
    点个关注吧~
  • 相关阅读:
    poj 1037 三维dp
    poj 3311 floyd+dfs或状态压缩dp 两种方法
    HDU 5761 物理题
    HDU 5752
    Codeforces Round #328 (Div. 2) C 数学
    cakephp中sql查询大于
    cakephp获取最后一条sql语句
    iconv()错误
    sql时间戳转日期格式
    接口报错
  • 原文地址:https://www.cnblogs.com/suanec/p/15684862.html
Copyright © 2011-2022 走看看