解决:pip is configured with locations that require TLS/SSL

 

在使用pip进行软件包安装的时候出现问题:

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

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

再次使用pip安装即可。

 

posted @   奥兰王子  阅读(464)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
· 全程使用 AI 从 0 到 1 写了个小工具
· 从文本到图像:SSE 如何助力 AI 内容实时呈现?(Typescript篇)
历史上的今天:
2020-06-13 xcopy 参数说明
2020-06-13 rhel7, redhat 8注册失败 Registering to: subscription.rhsm.redhat.com:443/subscription Network error
点击右上角即可分享
微信分享提示