在使用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安装即可。
本文解决了一个常见的pip安装警告问题:pip配置了需要TLS/SSL的位置,但Python中的ssl模块不可用。通过设置pip配置文件来指定国内镜像源,解决了这一问题。

16万+

被折叠的 条评论
为什么被折叠?



