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
相关推荐
master3361 天前
python 安装pip
开发语言·python·pip
2601_961875241 天前
花生十三资料1200题|题库|刷题
conda·pytest·pillow·pip·web3.py·ipython·gunicorn
FBI HackerHarry浩3 天前
解决pip 安装 numpy 时元数据生成失败
numpy·pip
砍材农夫3 天前
python环境|pip|uv|venv|Conda区别
后端·python·conda·pip·uv
砍材农夫5 天前
python 如何一次性安装项目所有依赖包(pip和uv)
开发语言·python·pip·uv
小白弄潮儿5 天前
Conda 使用入门指南(续):解决 pip 安装问题与最佳实践
conda·pip
Orchestrator_me6 天前
Python pip install报SSL错误
python·ssl·pip
CV-deeplearning6 天前
NVIDIA CV-CUDA:GPU 全流程加速计算机视觉,pip 一键安装替代 OpenCV,微软/腾讯/百度/字节全在用,云级图像处理吞吐量飙升 10 倍
opencv·计算机视觉·pip·nvidia·cuda·gpu加速·cv-cuda
veminhe8 天前
关于下载pip install faiss-cpu失败的问题
python·pip·faiss
xufengzhu8 天前
Python库PyMySQL的使用指南
开发语言·python·pip