添加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/
相关推荐
AI攻城狮2 小时前
用 Playwright 实现博客一键发布到稀土掘金
python·自动化运维
曲幽3 小时前
FastAPI分布式系统实战:拆解分布式系统中常见问题及解决方案
redis·python·fastapi·web·httpx·lock·asyncio
孟健18 小时前
Karpathy 用 200 行纯 Python 从零实现 GPT:代码逐行解析
python
码路飞20 小时前
写了个 AI 聊天页面,被 5 种流式格式折腾了一整天 😭
javascript·python
曲幽1 天前
FastAPI压力测试实战:Locust模拟真实用户并发及优化建议
python·fastapi·web·locust·asyncio·test·uvicorn·workers
chlk1231 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑1 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件1 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
敏编程1 天前
一天一个Python库:jsonschema - JSON 数据验证利器
python