解决: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.

在这里插入图片描述
解决:

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

然后输入内容:

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

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

再次使用pip安装即可。

猜你喜欢

转载自blog.csdn.net/witton/article/details/109352577
今日推荐