为了能快速了解并处理您的问题,请提供以下基础信息:
问题描述:用万能脚本安装时,多处提示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)
|
|