宝塔724运维节来了,企业版999元/年,送安全巡检;证书组队,低至28元!查看活动
当前位置:论坛首页 > Linux面板 > 求助

【已完成】无法安装宝塔,报错:pip is configured with locations

发表在 Linux面板2023-11-9 17:07 [复制链接] 6 3809

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

if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec
系统版本:麒麟 Kylin V10SP2

Python 2.7.16 (default, Jul  9 2020, 06:37:01) OpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022)
问题描述:安装报错:WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
相关截图(日志、错误):

完整日志:https://www.bt.cn/bbs/forum.php?mod=attachment&aid=MTU5Mzg5fDVlOTUyODcyNWY5ODA2MWZjNDM1YWE3ZDM2ZjgxMjQ0fDE3NTI3ODcyMDA%3D&request=yes&_f=.zip

使用道具 举报 只看该作者 回复
发表于 2023-11-9 17:10:07 | 显示全部楼层
使用道具 举报 回复 支持 反对
发表于 2023-11-9 17:11:12 | 显示全部楼层

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/aliyun-python-sdk-kms/
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/aliyun-python-sdk-kms/
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/aliyun-python-sdk-kms/
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/aliyun-python-sdk-kms/
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/aliyun-python-sdk-kms/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/aliyun-python-sdk-kms/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/aliyun-python-sdk-kms/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement aliyun-python-sdk-kms (from versions: none)
ERROR: No matching distribution found for aliyun-python-sdk-kms
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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
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/async-timeout/
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/async-timeout/
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/async-timeout/
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/async-timeout/
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/async-timeout/
Could not fetch URL https://pypi.tuna.tsinghua.edu.cn/simple/async-timeout/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /simple/async-timeout/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
使用道具 举报 回复 支持 反对
发表于 2023-11-10 16:02:39 | 显示全部楼层
我也是这样,这个python管理器安装依赖报错,依赖安装不上导致无法启动;但奇怪的是我之前的那个服务器一开始也是这样的,但不知道我搞了什么东西,它就可以根据依赖文件来全部安装了,python的版本都是3.10,奇奇怪怪了
使用道具 举报 回复 支持 反对
发表于 2023-11-10 16:27:27 | 显示全部楼层
关键是我把整个旧服务器的目录都移过去了,不包括python管理器创建的md5命名文件,移动这个过去,直接识别不了,这样的环境都安装不了,也不是镜像源的问题,我换清华的都不行
使用道具 举报 回复 支持 反对
发表于 2023-11-13 18:11:40 | 显示全部楼层
宝塔用户_udbitv 发表于 2023-11-10 16:27
关键是我把整个旧服务器的目录都移过去了,不包括python管理器创建的md5命名文件,移动这个过去,直接识别 ...

您好,看您的服务器访问清华的pip安装源是超时的。
请问是否限制了外网访问的权限?
使用道具 举报 回复 支持 反对
发表于 2023-11-14 15:52:57 | 显示全部楼层
您好,请问您的问题解决了吗?如果您的问题未解决请重新发帖,这边先把帖子关闭了。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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