修改pip镜像源和anaconda镜像源

修改pip镜像源为阿里云

在windows文件夹管理器中输入%appdata%,进入\appdata\roaming目录新建pip目录,新建pip.ini文件

在pip文件中输入以下内容

[global]

index-url = http://mirrors.aliyun.com/pypi/simple

[install]

trusted-host = mirrors.aliyun.com

 

配置anaconda清华大学镜像

https://mirror.tuna.tsinghua.edu.cn/help/anaconda/

在用户目录中生成一个 Windows 用户无法直接创建名为 .condarc 的文件,可先执行 conda config --set show_channel_urls yes 生成该文件之后再修改(将以下内容拷贝替换到.condarc中即可):

这个.condarc文件一般在C:\Users\* 你的用户名目录下哦,可以使用记事本打开并进行编辑

 

 

 

posted on 2020-03-14 23:50  风中狂笑  阅读(1665)  评论(1)    收藏  举报

导航