Python教程

Centos8 python pip报错: pip is configured with locations that require TLS/SSL 解决

本文主要是介绍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.

 

解决:

mkdir -p ~/.pip
vim ~/.pip/pip.conf 

然后添加内容:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

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

  

再次使用pip安装即可。

 

 

这篇关于Centos8 python pip报错: pip is configured with locations that require TLS/SSL 解决的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!