pip安装报错SSL

confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443)

错误代码如上

偶然搜索:ubuntu pip出错 confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.cloud.tencent.com', port=443)

看到这个回答
【日常踩坑】解决 pip 安装第三方包时因 SSL 报错

然后使用:

python 复制代码
pip install -r requirements.txt -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

解决问题

  • 其中--trusted-host mirrors.aliyun.com是告诉pip忽略与mirrors.aliyun.com的ssl证书验证
相关推荐
Jony_20 分钟前
高可用移动网络连接
网络协议
chilix5 小时前
Linux 跨网段路由转发配置
网络协议
tryCbest2 天前
Windows环境下配置pip镜像源
windows·pip
gihigo19982 天前
基于TCP协议实现视频采集与通信
网络协议·tcp/ip·音视频
百锦再2 天前
Django实现接口token检测的实现方案
数据库·python·django·sqlite·flask·fastapi·pip
白太岁2 天前
通信:(5) 电路交换、报文交换与分组交换
运维·服务器·网络·网络协议
EasyGBS2 天前
国标安全升级:GB28181平台EasyGBS支持GB35114协议的应用场景与核心优势
网络协议·安全·gb28181·gb35114
凯酱2 天前
Windows防火墙入站规则IP白名单
windows·网络协议·tcp/ip
稻草猫.2 天前
TCP与UDP:传输层协议深度解析
笔记·后端·网络协议
赤月奇2 天前
https改为http
数据挖掘·https·ssl