conda update -n base -c defaults conda 更新失败

conda update -n base -c defaults conda

  • 创建新的虚拟开发环境conda create -n env27 python=2.7
Collecting package metadata (current_repodata.json): done

Solving environment: done

==> WARNING: A newer version of conda exists. <==

  current version: 4.8.2
  latest version: 4.9.2

Please update conda by running

    $ conda update -n base -c defaults conda

  • 命令行运行conda update -n base -c defaults conda, 出现下面输出
Collecting package metadata (current_repodata.json): done

Solving environment: done

  • 查看conda的版本号conda -V, 表示更新失败
conda 4.8.2

解决方法

首先运行命令conda clean -a, 清理安装包

其次运行命令conda update condaconda update anaconda-navigatorconda update navigator-updater

最后运行命令conda create -n env_27 python=2.7创建成功

posted @ 2021-03-15 11:23  phper-liunian  阅读(5379)  评论(0编辑  收藏  举报