anaconda换源
anaconda镜像源下载
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
配置anaconda的国内源
清华源
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 --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels Index of /anaconda/pkgs/main/
上交大源
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.sjtug.sjtu.edu.cn/anaconda/pkgs/main/
设置搜索时显示通道地址
conda config --set show_channel_urls yes
查看是否添加上了源
conda config --show
更换pip下载源
永久换源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
临时换源
pip install 模块名 -i https://mirrors.aliyun.com/pypi/simple/
阿里云:http://mirrors.aliyun.com/pypi/simple/
清华:https://pypi.tuna.tsinghua.edu.cn/simple/
中科院:http://pypi.mirrors.opencas.cn/simple/
中科大:https://pypi.mirrors.ustc.edu.cn/simple/
Python官方:https://pypi.python.org/simple/
豆瓣:http://pypi.douban.com/simple/
v2ex:http://pypi.v2ex.com/simple/
推荐文章:Python库安装更新卸载+Anaconda/pip/Pycharm/Git/GitHub使用+添加删除镜像源+常见问题汇总 - 知乎 (zhihu.com)
本文作者:愿风带走思绪
本文链接:https://www.cnblogs.com/lsixu/p/18334301
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步