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)