Anaconda镜像源整理与使用

本文复制于

Anaconda镜像源整理与使用-天道酬勤-花开半夏

只为方便查找与防止原文被删除,请前往原文查看


Anaconda镜像源整理与使用 常用镜像源Conda源Pypi源 镜像源使用指令解决CondaHTTPError: HTTP 000 CONNECTION FAILED...问题

常用镜像源

新版的Ubuntu要求使用https源

Conda源

anaconda的国内镜像源,主要用来加快使用conda下载安装python环境的速度

清华镜像:

https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/linux-64
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/win-64

中科大镜像:

https://mirrors.ustc.edu.cn/anaconda/pkgs/main(已无效,链接指向北外镜像库)
https://mirrors.ustc.edu.cn/anaconda/pkgs/free(已无效,链接指向北外镜像库)

北京外国语大学镜像:

https://mirrors.bfsu.edu.cn/anaconda/pkgs/main
https://mirrors.bfsu.edu.cn/anaconda/pkgs/free
https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/linux-64
https://mirrors.bfsu.edu.cn/anaconda/pkgs/main/win-64

阿里云镜像:
https://mirrors.aliyun.com/anaconda/pkgs/main
https://mirrors.aliyun.com/anaconda/pkgs/free
https://mirrors.aliyun.com/anaconda/pkgs/main/linux-64
https://mirrors.aliyun.com/anaconda/pkgs/main/win-64

Pypi源

Pypi的国内镜像源,主要用来加快pip下载安装第三方库的速度

清华镜像:https://pypi.tuna.tsinghua.edu.cn/simple
中科大镜像:https://pypi.mirrors.ustc.edu.cn/simple/
阿里云镜像:https://mirrors.aliyun.com/pypi/simple
华中理工大学镜像:https://pypi.hustunique.com/
山东理工大学镜像:https://pypi.sdutlinux.org/
豆瓣镜像:https://pypi.douban.com/simple/

镜像源使用指令 // 添加镜像源conda config --add channels https://xxxxxx// 设置显示通道地址conda config --set show_channel_urls yes// 移除镜像源conda config --remove channels https://xxxxxx// 删除全部添加的镜像源(切换为默认源)conda config --remove-key channels// 显示当前镜像源conda config --show channels// conda临时使用镜像源conda install xxx -c https://xxxxxx// pip临时使用镜像源pip install xxx -i https://xxxxxx 解决CondaHTTPError: HTTP 000 CONNECTION FAILED…问题

linux:

vim ~/.condarc 打开.condarc文件

可通过删除channels:下的-default通道解决

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值