pip切换下载源(多种国内源)

pip切换下载源

一、pip

pip 是一个现代的,通用的 Python 包管理工具

二、使用步骤

1.查看源

使用以下命令查看当前pip的下载源

python 复制代码
pip config list

2.切换源

在国内使用官方下载依赖往往速度慢,易出错,因此我们选择切换国内镜像源,根据需求或喜好选择下列命令中的一条

python 复制代码
# 更换阿里源
https://mirrors.aliyun.com/pypi/simple

# 更换清华源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

# 更换腾讯源
pip config set global.index-url http://mirrors.cloud.tencent.com/pypi/simple

# 更换豆瓣源
pip config set global.index-url http://pypi.douban.com/simple/

# 更换中科大源
pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple
相关推荐
tryCbest3 天前
Windows环境下配置pip镜像源
windows·pip
百锦再3 天前
Django实现接口token检测的实现方案
数据库·python·django·sqlite·flask·fastapi·pip
coding者在努力5 天前
LangChain之解析器核心组件.2026年新版讲解,超详细
windows·python·机器学习·langchain·pip
wumingxiaoyao5 天前
从 requirements.txt 到 uv:多模块 Monorepo 的依赖管理升级指南(用法、特点、区别与最佳实践 + 例子)
pip·uv·pip tool
HrxXBagRHod13 天前
三相三电平维也纳整流器Simulink仿真模型探索
pip
张3蜂13 天前
Python pip 命令完全指南:从入门到精通
人工智能·python·pip
码云数智-大飞15 天前
PyCharm 安装 Python 模块失败?常见 pip 报错原因与解决方案全解析
python·pycharm·pip
skywalk816318 天前
windows10 pip安装ete4报错
开发语言·python·pip
Albert Edison20 天前
【Python】列表|元组
开发语言·python·pip
CYpdpjRnUE20 天前
MPU9250模块SPI驱动程序:原始数据读取与I2C主机模式配置AK8963磁力计教程
pip