当前位置:论坛首页 > Linux面板 > 求助

【待反馈】python 管理器

发表在 Linux面板2023-4-27 18:38 [复制链接] 2 4601

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:7.9.9

系统版本:centos7.9

问题描述:用管理器安装python会缺少 ssl模块,导致无法使用pip安装依赖.CentOS 7 and RHEL 7 ship an unsupported OpenSSL version. CentOS 7's EPEL repository comes with openssl11 package. The package install files in non-standard locations and uses a custom pkgconf module name openssl11. You can patch Python's configure script to use the custom build:

相关截图(日志、错误):
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")':  /simple/async-timeout/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/async-timeout/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after conne ction broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")':  /simple/async-timeout/
Could not fetch URL https://pypi.org/simple/async-timeout/: There was a problem confirming the ssl  certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple /async-timeout/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement async-timeout==4.0.2 (from versions: none)
ERROR: No matching distribution found for async-timeout==4.0.2
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is  not available.
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



使用道具 举报 只看该作者 回复
发表于 2023-4-27 19:42:35 | 显示全部楼层
您好,这个错误通常是由于缺少pyOpenSSL这个Python模块导致的,您可到服务器终端执行
  1. btpip install pyopenssl
复制代码

再尝试之前的操作
使用道具 举报 回复 支持 反对
发表于 2023-4-27 22:44:02 | 显示全部楼层
还是一样的错误,我进入到python中
  1. import ssl
复制代码
会出现

  1. ModuleNotFoundError: No module named '_ssl'
复制代码

使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表