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

【已解答】部署flask项目失败 Can't connect to HTTPS URL because the...

发表在 Linux面板2022-5-5 14:57 [复制链接] 3 6345


提示没有SSL。错误日志如下:

  1. 1900K .......... .......... .......... .......... .......... 92% 11.0M 0s
  2.   1950K .......... .......... .......... .......... .......... 94% 10.3M 0s
  3.   2000K .......... .......... .......... .......... .......... 97% 10.7M 0s
  4.   2050K .......... .......... .......... .......... .......... 99% 2.42M 0s
  5.   2100K ........                                              100% 9.22M=0.4s

  6. 2022-05-05 14:55:14 (4.58 MB/s) - ‘get-pip.py’ saved [2158605/2158605]

  7. WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  8. Looking in indexes: https://mirrors.aliyun.com/pypi/simple
  9. 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.")': /pypi/simple/pip/
  10. 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.")': /pypi/simple/pip/
  11. 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.")': /pypi/simple/pip/
  12. 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.")': /pypi/simple/pip/
  13. 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.")': /pypi/simple/pip/
  14. 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
  15. ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
  16. ERROR: No matching distribution found for pip
  17. WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  18. 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
复制代码


使用道具 举报 只看该作者 回复
发表于 2022-5-5 15:55:10 | 显示全部楼层
ssl模块有问题,你试试用/ww/wwwroot/项目名称/随机名称venv/bin/python这个独立环境手动启动项目,然后手动把模块装上试试
使用道具 举报 回复 支持 反对
发表于 2022-5-5 16:24:17 | 显示全部楼层
堡塔安全赤井秀一 发表于 2022-5-5 15:55
ssl模块有问题,你试试用/ww/wwwroot/项目名称/随机名称venv/bin/python这个独立环境手动启动项目,然后手 ...

我晚上试试看,回头来反馈
使用道具 举报 回复 支持 反对
发表于 2022-5-16 16:44:09 | 显示全部楼层
宝塔用户_sgpxhc 发表于 2022-5-5 16:24
我晚上试试看,回头来反馈

您好!现在问题解决了吗?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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