当前位置: 首页 > 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.jsqmd.com/news/48808/

相关文章:

  • Semgrep体验
  • 102302133陈佳昕作业3
  • CSAPP 处理器体系结构
  • AI协助 一周打造「七巧板益智小游戏」:从零高效开发教学工具
  • 【MCP系列】用 MCP 扩展 AI 编辑器:从零开发一个自己的MCP服务
  • VB6版MP3文件信息编辑器 - 开源研究系列文章 - 个人小作品
  • 手把手教你用 React + Zustand 打造 Windows 风格可拖拽,缩放,多窗口 Modal 组件
  • ImGui Learn Data Day 1
  • OI 笑传 #34
  • 【MCP系列】介绍一个我自己开发的MCP工具:MCP Shipit
  • 第34天(简单题中等题 数据结构)
  • 3. Gin RESTful API 开发
  • 说课逐字稿2
  • 251123头疼的一天
  • Codeforces Round 1066 (Div. 1 + Div. 2) 做题记录
  • 2025.11.23总结
  • 字符串常见操作
  • 广州比较靠谱的留学中介
  • SpringBoot 2.x - 3.x 踩坑记录
  • 广州比较好的留学机构
  • 配置文件路径
  • AtCoder Beginner Contest 433 题解
  • 使用 Lua 语言识别英文数字验证码
  • 广州10大出国留学机构
  • 北京留学机构,谁知道哪家比较好
  • 北京留学读研中介机构推荐
  • 北京留学机构排行榜
  • 北京口碑最好的十大留学机构
  • 北京口碑最好的留学机构
  • 用 Kotlin 实现简单的文本处理程序