当前位置: 首页 > news >正文

完整教程:Python pip instsll报错 Can‘t connect to HTTPS URL because the SSL module is not available.

完整教程:Python pip instsll报错 Can‘t connect to HTTPS URL because the SSL module is not available.

问题描述:

ERROR: Could not find a version that satisfies the requirement transformers (from versions: none)
ERROR: No matching distribution found for transformers

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

解决方案:

安装openssl

sudo apt-get install openssl
sudo apt-get install libssl-dev
openssl version
OpenSSL 1.1.1  11 Sep 2018

重新安装Python版本后接可以正常使用了。

python软链接也要删除后重新引用。

pip install -r requirements.txt
pip3 install --upgrade pip

http://www.rkmt.cn/news/58610.html

相关文章:

  • Semgrep体验
  • CSAPP 处理器体系结构
  • 【MCP系列】用 MCP 扩展 AI 编辑器:从零开发一个自己的MCP服务
  • 说课逐字稿2
  • 251123头疼的一天
  • 北京留学机构,谁知道哪家比较好
  • 北京口碑最好的十大留学机构
  • 北京比较靠谱的留学中介
  • 北京10大出国留学机构
  • 分库分表问题
  • 数据采集作业3 102302111 海米沙
  • L2-027 名人堂与代金券
  • 数字人平台指南:聚焦四大关键维度,破解选型难题
  • 20232301 2025-2026-1《网络与系统攻防技术》实验七实验报告
  • Winre.wim
  • 4sapicom生成式 AI 驱动下的智能聊天机器人 - 教程
  • KEYDIY PAK06-TB Phone As Key: Smart Keyless Car Key for European American Vehicles
  • 4.典型的分治算法
  • 数论部分
  • java和python做出什么
  • 2025 ICPC 西安区域赛 VP
  • 完整教程:人脸识别4-Windows下基于MSVC编译SeetaFace6
  • 2025-09-10-Wed-T-Kubernetes
  • 2025年11月小程序开发公司TOP5评测:功能落地与适配筛选标准,西南地区企业选择指南
  • 第二讲下梯度下降算法
  • 11.23
  • Java云计算技术如何确保稳定
  • 二分查找刷题总结
  • zjoi2019 语言
  • 2025-07-21-Mon-T-RocketMQ