pip和conda默认使用的下载链接一般是国外,导致下载速度十分缓慢,以下是换源命令,更换国内的下载源可以更快的下载包。
csharppip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/
注:尽量使用中科大的源,而不是清华的,中科大的速度大约是清华的10倍左右
在.condarc隐藏文件中覆盖写入:
textchannels: - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ - https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ ssl_verify: true
本文作者:James
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!