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

【待反馈】Python项目管理器安装的独立环境PIP无法使用

发表在 Linux面板2022-8-30 15:30 [复制链接] 3 6444

PIP运行了无法新增模块,手动命令输入目录+pip会提示ssl什么的

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/flask/

……
ERROR: Could not find a version that satisfies the requirement flask (from versions: none)
ERROR: No matching distribution found for flask


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
使用道具 举报 只看该作者 回复
发表于 2022-8-30 16:06:15 | 显示全部楼层
您好 ! 将PIP源更换为http后在尝试执行前面的操作
使用道具 举报 回复 支持 反对
发表于 2022-8-30 18:32:55 | 显示全部楼层
堡塔运维向樛木 发表于 2022-8-30 16:06
您好 ! 将PIP源更换为http后在尝试执行前面的操作

您好老师,安装后提示已安装,但是还是找不到模块,3eeeb4347bdd26bfc6b7ee9a3b755dd_venv/lib/python3.10/site-packages目录下也没有
使用道具 举报 回复 支持 反对
发表于 2022-9-20 16:56:13 | 显示全部楼层
chnz 发表于 2022-8-30 18:32
您好老师,安装后提示已安装,但是还是找不到模块,3eeeb4347bdd26bfc6b7ee9a3b755dd_venv/lib/python3.1 ...

提示是没有找到对应的Flask版本,您是使用的什么版本的flask?手动安装可以吗?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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