问题:
直接上图:WARNING: The conda.compat module is deprecated and will be removed in a future release

这个好像是这个版本的bug,有些博主回答说需要更新,可是这个根本更新不了;
所以有没有可能像ubuntu的apt源一样,换成国内源就可以了呢?
解决方式:
首先在命令行查看conda的信息:
conda info

找到这个疑似配置文件的位置;

文件内容啥都没有,
百度了一下,原来是/repo.anaconda.com在国外,没法更新;
在搜刮一下技术博主的回答,真的可以通过更换源的方式提高更新成功率;
添加国内的镜像源(国内清华大学镜像):
ssl_verify: true
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
show_channel_urls: true
allow_other_channels: true
然后,将D:\ProgramData\Anaconda3\Library\bin添加到系统的环境变量;
运行anconda prompt

可以看到正常更新了:

在查看版本:

网友评论