WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
pip3 安装报错
1 2 3 4 5 6 7 8 9 10 11 12 | [root@oracle Python - 3.11 . 8 ] # pip3 install --upgrade pip WARNING: pip is configured with locations that require TLS / SSL, however the ssl module in Python is not available. Requirement already satisfied: pip in / usr / local / python3 / lib / python3. 11 / site - packages ( 24.0 ) 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.org / simple / pip / : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host = 'pypi.org' , 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: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https: / / pip.pypa.io / warnings / venv 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.org / simple / pip / : There was a problem confirming the ssl certificate: HTTPSConnectionPool(host = 'pypi.org' , 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 |
解决办法
1 2 | mkdir - p ~ / .pip vim ~ / .pip / pip.conf |
然后输入内容:
1 2 3 4 5 | [ global ] index - url = http: / / mirrors.aliyun.com / pypi / simple / [install] trusted - host = mirrors.aliyun.com |
本文来自博客园,作者:蚌壳里夜有多长,转载请注明原文链接:https://www.cnblogs.com/dbahrz/p/18155917
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
2023-04-24 oracle 等待事件SQL*Net message to client
2023-04-24 19c physical standby cdb中只针对某一个pdb进行灾备
2023-04-24 oracle 等待事件'Log file sync'