在使用pip进行软件包安装的时候出现问题:

1WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

解决:

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

然后输入内容:

1[global]
2index-url = http://mirrors.aliyun.com/pypi/simple/
3
4[install]
5trusted-host = mirrors.aliyun.com

再次使用pip安装即可。