python 使用镜像安装库时提示 Warning——已解决

时间:2024-03-31 20:24:44

事件起因:

python 使用镜像安装库时提示 Warning——已解决
看这张图,使用清华镜像时提示 warning:
Warning: 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/' already in 'channels' list, moving to the top

解决方法:

在 C 盘的用户目录下找到 .condarc 文件
python 使用镜像安装库时提示 Warning——已解决
双击用记事本打开

可以看到文件里有清华源的链接
python 使用镜像安装库时提示 Warning——已解决
直接删除链接:
python 使用镜像安装库时提示 Warning——已解决

记得把文件保存再关闭

即可正常使用

python 使用镜像安装库时提示 Warning——已解决