pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
#主要问题
安装python3后,用pip3安装包报错
#解决方法
1. #创建pip.conf文件(如果没有的话,注意是pip.conf而不是pip.conmfig,不是pip.conmfig,不是pip.conmfig)
mkdir ~/.pip
cd ~/.pip
touch pip.conf
2. #编辑pip.conf
sudo vim pip.conf
以下是pip.conf内容
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
#最后
如果不成功,就试试别的方法吧。