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

【待反馈】python管理器无法部署项目

发表在 Linux面板2023-5-13 09:31 [复制链接] 2 2897

本帖最后由 堡塔运维香菜卷 于 2023-5-31 08:45 编辑

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

系统版本:CentOS 7.9.2009 x86_64(Py3.7.9)

问题描述:安装Python管理器。安装Python版本3.10.0

进行项目部署,
Flask + gunicorn
pip 安装部署 HTTPS SSL error,无法进行包安装操作。
  相关截图(日志、错误):

1.面板版本,7.9.92.操作系统版本,CentOS 7.9.2009 x86_64(Py3.7.9)
3.浏览器版本 chrome



问题:
安装Python管理器。
安装Python版本3.10.0

进行项目部署,
Flask + gunicorn
pip 安装部署 HTTPS SSL error,无法进行包安装操作。

进行过pip config设定。pip.ini修改,trust-host改动,均无效。怀疑pip版本问题。

报错如下:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pip/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', 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-05-05 13:19:54
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Could not fetch URL https://mirrors.aliyun.com/pypi/simple/flask/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.aliyun.com', port=443): Max retries exceeded with url: /pypi/simple/flask/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not fetch URL https://mirrors.aliyun.com/pypi/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.aliyun.com', port=443): Max retries exceeded with url: /pypi/simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
使用道具 举报 只看该作者 回复
发表于 2023-5-29 20:44:09 | 显示全部楼层
同求,遇到一样的问题了
使用道具 举报 回复 支持 反对
发表于 2023-5-31 08:45:17 | 显示全部楼层
您好,您这个问题是无法正常连接HTTPS的阿里云pip源造成的,您可以修改pip.config设置,把https改为http方式来尝试下载您的依赖包试试。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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