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

【待反馈】使用网站-部署python项目,安装模块遇到ssl错误

发表在 Linux面板2023-5-24 20:58 [复制链接] 2 2522

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

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

7.9.10
问题描述:

在网站python项目那里添加项目时,到安装依赖模块时报错
相关截图(日志、错误):

  1. 正在安装python版本,请稍候...
  2. 2023-05-24 20:52:25
  3. 开始复制环境 /www/server/pyporject_evn/45235be6d7f85eb672c3fab0c6e04253_venv
  4. 2023-05-24 20:52:26
  5. 目录复制成功!
  6. 2023-05-24 20:52:36
  7. 环境制作成功
  8. 2023-05-24 20:52:36
  9. 站点创建成功
  10. 2023-05-24 20:52:36
  11. 开始安装服务器应用
  12. 2023-05-24 20:53:00
  13. Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
  14. Could not fetch URL https://mirrors.aliyun.com/pypi/simple/uwsgi/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.aliyun.com', port=443): Max retries exceeded with url: /pypi/simple/uwsgi/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  15. 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
  16. Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
  17. Could not fetch URL https://mirrors.aliyun.com/pypi/simple/gunicorn/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.aliyun.com', port=443): Max retries exceeded with url: /pypi/simple/gunicorn/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  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
  19. Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
  20. Could not fetch URL https://mirrors.aliyun.com/pypi/simple/uvicorn/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='mirrors.aliyun.com', port=443): Max retries exceeded with url: /pypi/simple/uvicorn/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  21. 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

  22. 2023-05-24 20:53:00
  23. 安装依赖包
  24. WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  25. Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
  26. 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/apscheduler/
  27. 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/apscheduler/
  28. 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/apscheduler/
  29. 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/apscheduler/
复制代码


使用道具 举报 只看该作者 回复
发表于 2023-5-24 22:17:21 | 显示全部楼层
您好,根据您提供的错误信息显示无法正常连接到阿里云的pypi源,您可咨询服务器厂商协助您更换pypi源,再进行之前的操作试试
使用道具 举报 回复 支持 反对
发表于 2023-5-25 07:11:33 | 显示全部楼层
堡塔运维盏尽 发表于 2023-5-24 22:17
您好,根据您提供的错误信息显示无法正常连接到阿里云的pypi源,您可咨询服务器厂商协助您更换pypi源,再进 ...

好的谢谢
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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