【待反馈】安装老是提示python模块的TLS不可用
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:万能插件系统版本: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/simpleRequirement 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 ippingWARNING: 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/simpleRequirement already satisfied: pymongo in /www/server/panel/pyenv/lib/python3.7/ site-packages (3.11.2)
您好,这个应该是系统兼容性问题,您的python环境都有问题
建议将操作系统更换为ubuntu或者Debian 运维技术南一 发表于 2024-4-22 18:29
您好,这个应该是系统兼容性问题,您的python环境都有问题
建议将操作系统更换为ubuntu或者Debian ...
我只能用这个欧拉系统,不能换操作系统的 运维技术南一 发表于 2024-4-22 18:29
您好,这个应该是系统兼容性问题,您的python环境都有问题
建议将操作系统更换为ubuntu或者Debian ...
安装时的python环境是bt自己临时下载的,跟我系统本身的python环境有什么关系? 这个提示是python的ssl模块不可用,检查你系统的python环境
安装时的python环境是用于面板的虚拟环境,和这里提示的系统的python环境是不一样的 阿珂 发表于 2024-5-10 17:13
这个提示是python的ssl模块不可用,检查你系统的python环境
安装时的python环境是用于面板的虚拟环境,和这 ...
这里提示的是面板的虚拟环境的python不可用,不是我系统的python不可以用 宝塔用_3e66 发表于 2024-5-16 10:01
这里提示的是面板的虚拟环境的python不可用,不是我系统的python不可以用
那就重新安装一下python试试
页:
[1]