Anaconda 报错:solving environment: failed

Anaconda 报错:solving environment: failed

    • 在使用anaconda创建环境时,报错:
    • 解决办法是:
      • 方法一: 更改国内源,亲测有效。
      • 方法二: 更新conda 的版本

在使用anaconda创建环境时,报错:

conda create -n  mymenu python==python3.7

报错:
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=3.7

Current channels:

  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/osx-64
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/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.

解决办法是:

转自:https://zhuanlan.zhihu.com/p/371346329

方法一: 更改国内源,亲测有效。

vim ~/.condarc

放入下面信息:

channels:
  - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
  - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
show_channel_urls: true
ssl_verify: true
channel_priority: flexible

方法二: 更新conda 的版本

更新conda到最新版本:conda update -n base conda 然后执行:conda update --all

你可能感兴趣的:(其他)