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
相关推荐
资深设备全生命周期管理5 天前
在线测试来料公差
python·pip
bjxiaxueliang6 天前
一文详解PyTorch环境搭建:M芯Mac通过pip安装PyTorch开发环境
pytorch·macos·pip
ssslar12 天前
Flutter PIP 插件 ---- iOS Video Call 自定义PIP WINDOW渲染内容
flutter·ios·pip
假意诗人15 天前
Python3笔记之号称替代pip的uv包管理器
python·pip·uv
猫头虎15 天前
最新如何在服务器中解决FFmpeg下载、安装和配置问题教程(Linux|Windows|Mac|Ubuntu)
linux·服务器·windows·ffmpeg·音视频·pip·视频编解码
GDAL16 天前
Conda与Pip:Python包管理工具的对比与选型
python·conda·pip
再玩一会儿看代码17 天前
pip 与 conda 的全面比较:Python 包管理的深度解析
经验分享·笔记·python·conda·课程设计·pip
Eiceblue17 天前
使用Python写入JSON、XML和YAML数据到Excel文件
xml·开发语言·vscode·python·json·excel·pip
李雨非-19期-河北工职大18 天前
“pip“ is not recognized(pip无法被识别)
pip
mzak18 天前
已经安装了pip,出现pip command not found【解决方法】
linux·pip·python3