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
相关推荐
猫头虎14 小时前
城市级IP代理:赋能全球企业本地化数字增长与安全合规 | Decodo 德口多
网络·python·网络协议·tcp/ip·安全·pandas·pip
派葛穆4 天前
Python-pip切换镜像源
开发语言·python·pip
master33623 天前
python 安装pip
开发语言·python·pip
2601_9618752423 天前
花生十三资料1200题|题库|刷题
conda·pytest·pillow·pip·web3.py·ipython·gunicorn
FBI HackerHarry浩25 天前
解决pip 安装 numpy 时元数据生成失败
numpy·pip
砍材农夫25 天前
python环境|pip|uv|venv|Conda区别
后端·python·conda·pip·uv
砍材农夫1 个月前
python 如何一次性安装项目所有依赖包(pip和uv)
开发语言·python·pip·uv
小白弄潮儿1 个月前
Conda 使用入门指南(续):解决 pip 安装问题与最佳实践
conda·pip
Orchestrator_me1 个月前
Python pip install报SSL错误
python·ssl·pip
CV-deeplearning1 个月前
NVIDIA CV-CUDA:GPU 全流程加速计算机视觉,pip 一键安装替代 OpenCV,微软/腾讯/百度/字节全在用,云级图像处理吞吐量飙升 10 倍
opencv·计算机视觉·pip·nvidia·cuda·gpu加速·cv-cuda