添加pip源,ubuntu

(base) pc@pc:~/Desktop$ mkdir ~/.pip

(base) pc@pc:~/Desktop$ touch ~/.pip/pip.conf

(base) pc@pc:~/Desktop$ nano ~/.pip/pip.conf

bash 复制代码
[global]
trusted-host = pypi.tuna.tsinghua.edu.cn;mirrors.aliyun.com;mirrors.cloud.tencent.com
index-url = https://pypi.tuna.tsinghua.edu.cn/simple/
extra-index-url =
 https://mirrors.aliyun.com/pypi/simple/
 https://mirrors.cloud.tencent.com/pypi/simple/
相关推荐
ZhengEnCi3 分钟前
电脑操作 Agent 一直点不中:截图没更新时,提示词该怎么改才能停止瞎试
人工智能·python·agent
郝学胜-神的一滴33 分钟前
Effective STL 条款09:慎重选择删除元素的方法
开发语言·网络·数据结构·c++·算法·stl
Johny_Zhao1 小时前
Keepalived与Nginx架构选型
linux·nginx·信息安全·云计算·apache·shell·yum源·keepalive·系统运维
Wellijohn2 小时前
dict、tuple、dataclass 还是 slots?我把 6 种数据载体的 8 项开销全测了一遍
后端·python·性能优化
bufengwangluo3 小时前
爬虫和调用 API 有什么区别?为什么优先选 API
python·网络爬虫·ip·api调用
Dmz丶3 小时前
前端转 AI 100 天 Day 54:RAG 项目实战(三)——多轮对话 + 会话管理
python
console.log('npc')3 小时前
Python第9课 类学习笔记,前端js语法对照
前端·python·学习
FlightYe3 小时前
linux系统编程(二十一):C 语言常见坑
android·linux·运维·服务器·c语言·音视频