最近在Ubuntu16.04上安装Python3.6之后,使用pip命令出现了问题,提示说找不到ssl模块,出现错误如下:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https:*******: There was a problem confirming the ssl certifi
介绍
安装python3(centos7)
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
mkdir /usr/local/python3
tar -Jxvf Python-3.6.4.tar.xz
cd Python-3.6.4
./configure --prefix=/usr/local/python3
make && make install
/usr/local/python3/bin/pip3 in