首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

超简单更换PIP国内下载

前言: 在Python中使用pip下载库的时候,默认是会连接国外的,经常会出现连接超时的情况,这时候就需要修改一下pip的默认下载为国内的镜像,这样下载库的时候就可以很快了。...pip国内镜像下载: 中国科技大学:https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban):http://pypi.douban.com/simple...清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/ 中国科学技术大学:http://pypi.mirrors.ustc.edu.cn/simple/ 修改默认:...Linux:  修改$HOME/.config/pip/pip.conf(没有就创建一个), 内容如下: [global] index-url = http://mirrors.aliyun.com...Windows文件设置显示后缀信息: 测试:  现在已经更换为国内源了,可以看到现在下载python库速度就很快了。

1.2K20

Linux更换默认yum为网易yum的操作记录

废话不多说,下面记录了centos下更换系统默认yum为网易yum的操作过程: 1)备份原有的默认yum [root@bastion-IDC ~]# cp /etc/yum.repos.d/CentOS-Base.repo...RPM-GPG-KEY-CentOS-6 [root@bastion-IDC ~]# yum clean all [root@bastion-IDC ~]# yum makecache          //将服务器上的软件包信息缓存到本地...,以提高搜索安装软件的速度 [root@bastion-IDC ~]# yum update              //更新系统 依照上面操作后,yum更换成网易的了,并能正常使用。...------------------------------------------------------------------------------------------------ 如果要更换成阿里云的...yum,只需要将/etc/yum.repos.d/CentOS-Base.repo内容替换成下面内容即可,然后yum clean all、yum makecache、yum update # CentOS-Base.repo

3.4K60

更换 PVE7 软件仓库和 CT模板(LXC)为国内源

PVE7 安装后默认配置的 apt 软件和 CT(LXC)容器模板均是官方默认的,国内使用性能不佳,建议替换为 清华 Tuna 提供的国内镜像,速度将有一个较大的提升。...如果 pve 官网 iso 镜像下载较慢,也可在 tuna 提供的镜像站下载:https://mirrors.tuna.tsinghua.edu.cn/proxmox/iso/ 注:本文以 pve 7.0.2...替换 apt 软件# 替换前建议先更新下证书,否则可能由于证书不可用导致 https 无法使用,进而无法下载所有软件。...$ sudo apt install apt-transport-https ca-certificates 首先替换通用软件, Debian 的软件配置文件是 /etc/apt/sources.list...https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free 之后替换 pve 软件

1.4K50

更换 PVE7 软件仓库和 CT模板(LXC)为国内源

PVE7 安装后默认配置的 apt 软件和 CT(LXC)容器模板均是官方默认的,国内使用性能不佳,建议替换为 清华 Tuna 提供的国内镜像,速度将有一个较大的提升。...如果 pve 官网 iso 镜像下载较慢,也可在 tuna 提供的镜像站下载:https://mirrors.tuna.tsinghua.edu.cn/proxmox/iso/ 注:本文以 pve 7.0.2...替换 apt 软件# 替换前建议先更新下证书,否则可能由于证书不可用导致 https 无法使用,进而无法下载所有软件。...$ sudo apt install apt-transport-https ca-certificates 首先替换通用软件, Debian 的软件配置文件是 /etc/apt/sources.list...https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free 之后替换 pve 软件

67550
领券