Anaconda换源,可以加快下载速度。
在命令行下输入:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda info
Pip换源
windows下,直接在user目录中创建一个pip目录,如:**
C:\Users\xx\pip,新建文件pip.ini,内容如下
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple