欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 美食 > 【国内当前可用pipconda源刷新】

【国内当前可用pipconda源刷新】

2025/7/4 5:22:01 来源:https://blog.csdn.net/u010438035/article/details/140493995  浏览:    关键词:【国内当前可用pipconda源刷新】

Python镜像源切换

最近发现清华源无法访问了。
更换为腾讯云的源:

pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple 

运行以上命令,即可直接设置成功,可以使用pip config list再查询一下

Conda镜像源切换

编辑配置文件".condarc",更换为上海交通大学源

channels:- defaults
show_channel_urls: true
default_channels:- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/r- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/msys2- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/mro- https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/pro

在终端运行conda info确认已更改成功
在终端运行conda clean -i 清除索引缓存,保证用的是镜像站提供的索引。
在终端运行conda search "^python$"查找可用的python版本

已验证该源国内目前可用的conda源,其他如清华源无法连接。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词