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.
![](https://www.icode9.com/i/l/?n=22&i=blog/1734275/202206/1734275-20220630115044229-1875066731.png)
解决:
mkdir -p ~/.pip vim ~/.pip/pip.conf
然后添加内容:
[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host = mirrors.aliyun.com
再次使用pip安装即可。
标签:TLS,mirrors,configured,locations,报错,aliyun,pip 来源: https://www.cnblogs.com/yifengyu/p/16426371.html