替换镜像源

下载慢时使用以下方法替换镜像源:

1``.vim ~/.pip/pip.conf

[global]

index-url = https:``//pypi.tuna.tsinghua.edu.cn/simple/

trusted-host = pypi.tuna.tsinghua.edu.cn

2``.sudo sed -i ``"s@http://.*archive.ubuntu.com@http://mirrors.aliyun.com@g" /etc/apt/sources.list

sudo sed -i ``"s@http://.*security.ubuntu.com@http://mirrors.aliyun.com@g" /etc/apt/sources.list

相关推荐
互联网时光机21 小时前
我用 UniApp + 腾讯云 IAI 做了一个“明星脸比对“小程序,零后台延迟
经验分享·python·人脸识别
l1t21 小时前
DeepSeek总结的Python 3.14.5 发布候选版本
开发语言·python
Cyber4K21 小时前
【Python专项】进阶语法-日志分类与分析(2)
开发语言·前端·python
lbb 小魔仙21 小时前
Python + LangChain 环境搭建完全指南:从零构建本地 RAG 知识库(附 Ollama 本地模型集成)
开发语言·python·langchain
风落无尘21 小时前
Python 包发布全流程:从项目结构到 PyPI 上线,以及我踩过的那些坑
开发语言·python·pip
Lenyiin21 小时前
《LeetCode 顺序刷题》61 - 70
java·c++·python·算法·leetcode·lenyiin
岁岁的O泡奶21 小时前
NSSCTF_crypto_[LitCTF 2023]babyLCG
经验分享·python·算法·密码学·crypto·流密码
风落无尘21 小时前
我用 LangChain 写了一个带“定速巡航”的向量化工具,发布到 PyPI 了!
人工智能·python·langchain
AI技术控21 小时前
RAG 效果差不是模型问题:10 个检索增强失败原因总结
人工智能·python·自然语言处理
Hesionberger21 小时前
LeetCode 78:子集生成全攻略
java·开发语言·数据结构·python·算法·leetcode·职场和发展