为Anaconda添加新的源

为Anaconda添加新的源

在cmd中输入以下内容即可, 清华的源,速度非常快

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes

更改pip源

windows下,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
posted @ 2017-04-15 10:14  狂徒归来  阅读(2709)  评论(0编辑  收藏  举报