小工具知识网

当前位置: 首页 > 行业知识 > 解决:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available

行业知识

解决:pip is configured with locations that require TLS/SSL,the ssl module in Python is not available

2026-11-07 18:38:43 来源:互联网转载

Windows版

        出错提示表示当前python缺少SSL模块,pip默认安装源为https://pypi.org/simple/,连接是需要SSL库,写配置文件修改为阿里安装源。

pip config --global set global.index-url http://mirrors.aliyun.com/pypi/simple/

        观察到配置被写入以下文件:

        记事本打开pip.ini文件,在末行添加

[install]trusted-host = mirrors.aliyun.com

        重新pip即可成功。

上一篇:独家揭秘,合法下载Google的正确途径!

下一篇:基于JAVA协同过滤算法网上农产品推荐购物商城系统设计与实现(Springboot框架)可行性分析