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

【待反馈】安装老是提示python模块的TLS不可用

发表在 Linux面板2024-4-22 14:34 [复制链接] 3 67

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

系统版本:Euler

问题描述:用万能脚本安装时,多处提示
WARNING: pip is configured with locations that require TLS/SSL, however the ssl                                                                                                             module in Python is not available.

很奇怪,从宝塔自己的服务器下载一些东西时,也是https,可以正常下载,但是从python的pip库下载时,比如aliyun就报TLS/SSL问题。

不要说改pip的源,把https改成http,没有用啊,每次重新执行脚本,脚本的python环境都是脚本重新下载的,重新下载的又是https

  
相关截图(日志、错误):
WARNING: pip is configured with locations that require TLS/SSL, however the ssl                                                                                                             module in Python is not available.
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: docxtpl==0.16.7 in /www/server/panel/pyenv/lib/py                                                                                                            thon3.7/site-packages (0.16.7)
Requirement already satisfied: six in /www/server/panel/pyenv/lib/python3.7/site                                                                                                            -packages (from docxtpl==0.16.7) (1.15.0)
Requirement already satisfied: docxcompose in /www/server/panel/pyenv/lib/python                                                                                                            3.7/site-packages (from docxtpl==0.16.7) (1.4.0)
Requirement already satisfied: python-docx in /www/server/panel/pyenv/lib/python                                                                                                            3.7/site-packages (from docxtpl==0.16.7) (1.1.0)
Requirement already satisfied: jinja2 in /www/server/panel/pyenv/lib/python3.7/s                                                                                                            ite-packages (from docxtpl==0.16.7) (3.1.3)
Requirement already satisfied: lxml in /www/server/panel/pyenv/lib/python3.7/sit                                                                                                            e-packages (from docxtpl==0.16.7) (5.1.0)
Requirement already satisfied: babel in /www/server/panel/pyenv/lib/python3.7/si                                                                                                            te-packages (from docxcompose->docxtpl==0.16.7) (2.14.0)
Requirement already satisfied: setuptools in /www/server/panel/pyenv/lib/python3                                                                                                            .7/site-packages (from docxcompose->docxtpl==0.16.7) (68.0.0)
Requirement already satisfied: typing-extensions in /www/server/panel/pyenv/lib/                                                                                                            python3.7/site-packages (from python-docx->docxtpl==0.16.7) (4.7.1)
Requirement already satisfied: pytz>=2015.7 in /www/server/panel/pyenv/lib/pytho                                                                                                            n3.7/site-packages (from babel->docxcompose->docxtpl==0.16.7) (2020.5)
Requirement already satisfied: MarkupSafe>=2.0 in /www/server/panel/pyenv/lib/py                                                                                                            thon3.7/site-packages (from jinja2->docxtpl==0.16.7) (2.1.5)
WARNING: pip is configured with locations that require TLS/SSL, however the ssl                                                                                                             module in Python is not available.
Could not fetch URL https://mirrors.aliyun.com/pypi/simple/pip/: There was a pro                                                                                                            blem confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.aliyun.co                                                                                                            m', port=443): Max retries exceeded with url: /pypi/simple/pip/ (Caused by SSLEr                                                                                                            ror("Can't connect to HTTPS URL because the SSL module is not available.")) - sk                                                                                                            ipping
WARNING: pip is configured with locations that require TLS/SSL, however the ssl                                                                                                             module in Python is not available.
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Requirement already satisfied: pymongo in /www/server/panel/pyenv/lib/python3.7/                                                                                                            site-packages (3.11.2)

使用道具 举报 只看该作者 回复
发表于 2024-4-22 18:29:18 | 显示全部楼层
您好,这个应该是系统兼容性问题,您的python环境都有问题
建议将操作系统更换为ubuntu或者Debian
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
运维技术南一 发表于 2024-4-22 18:29
您好,这个应该是系统兼容性问题,您的python环境都有问题
建议将操作系统更换为ubuntu或者Debian ...

我只能用这个欧拉系统,不能换操作系统的
使用道具 举报 回复 支持 反对
发表于 4 天前 | 显示全部楼层
运维技术南一 发表于 2024-4-22 18:29
您好,这个应该是系统兼容性问题,您的python环境都有问题
建议将操作系统更换为ubuntu或者Debian ...

安装时的python环境是bt自己临时下载的,跟我系统本身的python环境有什么关系?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

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

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

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

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

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表