WARNING: The conda.compat module is deprecated and will be removed in a future release.报错修复。

WARNING: The conda.compat module is deprecated and will be removed in a future release.报错修复。

  • 使用conda装包报错
$ conda install basemap
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: \ Segmentation fault (core dumped)

$ conda --version
conda 4.6.11
$ conda update -n base conda
$ conda --version
conda 4.7.12

  • conda 4.6.11版本的一个bug,解决办法升级conda版本
$ conda update -n base conda
$ conda --version
conda 4.7.12
$ conda install basemap
Collecting package metadata (repodata.json):
  • conda 添加清华镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --set show_channel_urls yes
  • 切换成默认镜像
conda config --remove-key channels

你可能感兴趣的:(WARNING: The conda.compat module is deprecated and will be removed in a future release.报错修复。)