Centos8 python pip报错: 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 @   平行时空的旅者  阅读(477)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示