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
相关推荐
li99yo2 天前
3DGS的复现
图像处理·pytorch·经验分享·python·3d·conda·pip
Dontla2 天前
用pip install -e .开发Python包时,Python项目目录结构(项目结构)(可编辑安装editable install)
python·pip
今夕资源网2 天前
零基础 Python 环境搭建工具 一键安装 Python 环境自动配置 升级 pip、setuptools、wheel
开发语言·python·pip·环境变量·python环境变量·python自动安装
这个名有人用不4 天前
解决 uv 虚拟环境使用 pip 命令提示command not found的办法
python·pip·uv·claude code
猿界零零七7 天前
pip install mxnet 报错解决方案
python·pip·mxnet
万粉变现经纪人8 天前
如何解决 pip install shapely 报错 GEOS C 库未找到 问题
c语言·开发语言·python·pycharm·bug·pandas·pip
大连好光景9 天前
conda管理包还是pip管理包
python·conda·pip
万粉变现经纪人9 天前
如何解决 pip install cx_Oracle 报错 未找到 Oracle Instant Client 问题
数据库·python·mysql·oracle·pycharm·bug·pip
万粉变现经纪人9 天前
如何解决 pip install pillow-simd 报错 需要 AVX2/特定编译器 支持 问题
python·scrapy·beautifulsoup·aigc·pandas·pillow·pip
YMWM_11 天前
‘pip install -e .‘ and ‘pip install .‘
pip·pip install