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
相关推荐
hljqfl3 天前
pip安装第三方库,但PyCharm中却无法识别
ide·pycharm·pip
Monee..3 天前
linux里安装pip和conda
linux·conda·pip
豆芽8195 天前
Conda配置Python环境
python·conda·pip
MobiCetus5 天前
有关pip与conda的介绍
linux·windows·python·ubuntu·金融·conda·pip
Eiceblue5 天前
Python 在Word中查找并替换文本
vscode·python·word·pip
situnima6 天前
Python包管理完全指南:pip常用命令与最佳实践
开发语言·python·pip
Melody20506 天前
pip install cryptacular卡住,卡在downloading阶段
pip
W_chuanqi6 天前
为pip设置国内镜像源
python·pip
kcarly7 天前
python 、pip、conda、poetry的关系
python·conda·pip·poetry
伊织code9 天前
uv - 概念 [官方文档翻译]
服务器·python·pip·uv·概念·concept